diff options
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantPoolValue.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp index 72c95f4412655..c1df7ef43cadd 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp @@ -73,7 +73,7 @@ StringRef ARMConstantPoolValue::getModifierText() const { } int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP, - unsigned Alignment) { + Align Alignment) { llvm_unreachable("Shouldn't be calling this directly!"); } @@ -189,7 +189,7 @@ const BlockAddress *ARMConstantPoolConstant::getBlockAddress() const { } int ARMConstantPoolConstant::getExistingMachineCPValue(MachineConstantPool *CP, - unsigned Alignment) { + Align Alignment) { int index = getExistingMachineCPValueImpl<ARMConstantPoolConstant>(CP, Alignment); if (index != -1) { @@ -228,7 +228,7 @@ ARMConstantPoolSymbol::ARMConstantPoolSymbol(LLVMContext &C, StringRef s, bool AddCurrentAddress) : ARMConstantPoolValue(C, id, ARMCP::CPExtSymbol, PCAdj, Modifier, AddCurrentAddress), - S(s) {} + S(std::string(s)) {} ARMConstantPoolSymbol *ARMConstantPoolSymbol::Create(LLVMContext &C, StringRef s, unsigned ID, @@ -237,7 +237,7 @@ ARMConstantPoolSymbol *ARMConstantPoolSymbol::Create(LLVMContext &C, } int ARMConstantPoolSymbol::getExistingMachineCPValue(MachineConstantPool *CP, - unsigned Alignment) { + Align Alignment) { return getExistingMachineCPValueImpl<ARMConstantPoolSymbol>(CP, Alignment); } @@ -277,7 +277,7 @@ ARMConstantPoolMBB *ARMConstantPoolMBB::Create(LLVMContext &C, } int ARMConstantPoolMBB::getExistingMachineCPValue(MachineConstantPool *CP, - unsigned Alignment) { + Align Alignment) { return getExistingMachineCPValueImpl<ARMConstantPoolMBB>(CP, Alignment); } |