aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMELFWriterInfo.cpp
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2010-11-23 19:40:36 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2010-11-23 19:40:36 +0000
commit13534672deffb571d90f2c2f0a237c67d5aa0594 (patch)
tree3a22f274bfd1d984e904178b23517649aa4e2b75 /lib/Target/ARM/ARMELFWriterInfo.cpp
parent626613d5e8805db1f40e956faf47c87bea3aee44 (diff)
Move the ARM reloc constants to Support/ELF.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMELFWriterInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMELFWriterInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMELFWriterInfo.cpp b/lib/Target/ARM/ARMELFWriterInfo.cpp
index 776727500d..51e68b4553 100644
--- a/lib/Target/ARM/ARMELFWriterInfo.cpp
+++ b/lib/Target/ARM/ARMELFWriterInfo.cpp
@@ -17,6 +17,7 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
+#include "llvm/Support/ELF.h"
using namespace llvm;
@@ -42,9 +43,9 @@ unsigned ARMELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
case ARM::reloc_arm_pic_jt:
assert(0 && "unsupported ARM relocation type"); break;
- case ARM::reloc_arm_branch: return R_ARM_CALL; break;
- case ARM::reloc_arm_movt: return R_ARM_MOVT_ABS; break;
- case ARM::reloc_arm_movw: return R_ARM_MOVW_ABS_NC; break;
+ case ARM::reloc_arm_branch: return ELF::R_ARM_CALL; break;
+ case ARM::reloc_arm_movt: return ELF::R_ARM_MOVT_ABS; break;
+ case ARM::reloc_arm_movw: return ELF::R_ARM_MOVW_ABS_NC; break;
default:
llvm_unreachable("unknown ARM relocation type"); break;
}