diff options
author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-02-04 19:47:15 +0000 |
---|---|---|
committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-02-04 19:47:15 +0000 |
commit | d2e2f56c3654a07b42fe1bd47ad3a832ce0d74ea (patch) | |
tree | d6806ee94c9b0db07aab09012cc3412213c7be27 /llvm/lib/Target/ARM/ARMFixupKinds.h | |
parent | 096bd8837fd1e90c10db05af2614c962946a7a8a (diff) | |
download | bcm5719-llvm-d2e2f56c3654a07b42fe1bd47ad3a832ce0d74ea.tar.gz bcm5719-llvm-d2e2f56c3654a07b42fe1bd47ad3a832ce0d74ea.zip |
Teach ARM/MC/ELF to handle R_ARM_JUMP24 relocation type for conditional jumps.
(yes, this is different from R_ARM_CALL)
- Adds a new method getARMBranchTargetOpValue() which handles the
necessary distinction between the conditional and unconditional br/bl
needed for ARM/ELF
At least for ARM mode, the needed fixup for conditional versus unconditional
br/bl is identical, but the ARM docs and existing ARM tools expect this
reloc type...
Added a few FIXME's for future naming fixups in ARMInstrInfo.td
llvm-svn: 124895
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFixupKinds.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFixupKinds.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMFixupKinds.h b/llvm/lib/Target/ARM/ARMFixupKinds.h index 9425f222613..3d175e38690 100644 --- a/llvm/lib/Target/ARM/ARMFixupKinds.h +++ b/llvm/lib/Target/ARM/ARMFixupKinds.h @@ -40,9 +40,12 @@ enum Fixups { // fixup_t2_adr_pcrel_12 - 12-bit PC relative relocation for the ADR // instruction. fixup_t2_adr_pcrel_12, - // fixup_arm_branch - 24-bit PC relative relocation for direct branch - // instructions. - fixup_arm_branch, + // fixup_arm_condbranch - 24-bit PC relative relocation for conditional branch + // instructions. + fixup_arm_condbranch, + // fixup_arm_uncondbranch - 24-bit PC relative relocation for + // branch instructions. (unconditional) + fixup_arm_uncondbranch, // fixup_t2_condbranch - 20-bit PC relative relocation for Thumb2 direct // uconditional branch instructions. fixup_t2_condbranch, |