summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMCodeEmitter.cpp
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2010-11-18 23:37:15 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2010-11-18 23:37:15 +0000
commit837caa9313e1f9480721f232f89f5c7b1b9c9d09 (patch)
treed80c31fe64ecaafa2fbe74094a5708005fa4332f /lib/Target/ARM/ARMCodeEmitter.cpp
parentbd9c77bc9ad384d046a7967d160ad96f61916d9d (diff)
downloadllvm-837caa9313e1f9480721f232f89f5c7b1b9c9d09.tar.gz
llvm-837caa9313e1f9480721f232f89f5c7b1b9c9d09.tar.bz2
llvm-837caa9313e1f9480721f232f89f5c7b1b9c9d09.tar.xz
Fix .o emission of ARM movt/movw. MCSymbolRefExpr::VK_ARM_(HI||LO)16 for the .o path now works for ARM.
Note: lo16AllZero remains in ARMInstrInfo.td - It can be factored out when Thumb movt is repaired. Existing tests cover this update. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMCodeEmitter.cpp')
-rw-r--r--lib/Target/ARM/ARMCodeEmitter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp
index 14b0acc037..8888420d2a 100644
--- a/lib/Target/ARM/ARMCodeEmitter.cpp
+++ b/lib/Target/ARM/ARMCodeEmitter.cpp
@@ -214,6 +214,11 @@ namespace {
Binary |= (Reg << 13);
return Binary;
}
+
+ unsigned getMovtImmOpValue(const MachineInstr &MI, unsigned Op) const {
+ return 0;
+ }
+
uint32_t getAddrMode2OpValue(const MachineInstr &MI, unsigned OpIdx)
const { return 0;}
uint32_t getAddrMode2OffsetOpValue(const MachineInstr &MI, unsigned OpIdx)