summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-02-27 21:36:23 +0000
committerJim Grosbach <grosbach@apple.com>2012-02-27 21:36:23 +0000
commit7b25ecf6adbf3c4709c48033acfeb6ebbb4452ab (patch)
tree649c04d8126e29b74b9881df0434fadd4aec39d9 /include
parent945c2b3965a5d327055f624dd5dab659551da108 (diff)
downloadllvm-7b25ecf6adbf3c4709c48033acfeb6ebbb4452ab.tar.gz
llvm-7b25ecf6adbf3c4709c48033acfeb6ebbb4452ab.tar.bz2
llvm-7b25ecf6adbf3c4709c48033acfeb6ebbb4452ab.tar.xz
ARM BL/BLX instruction fixups should use relocations.
We on the linker to resolve calls to the appropriate BL/BLX instruction to make interworking function correctly. It uses the symbol in the relocation to do that, so we need to be careful about being too clever. To enable this for ARM mode, split the BL/BLX fixup kind off from the unconditional-branch fixups. rdar://10927209 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAsmBackend.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/MC/MCAsmBackend.h b/include/llvm/MC/MCAsmBackend.h
index 11a081b207..641ded5ef0 100644
--- a/include/llvm/MC/MCAsmBackend.h
+++ b/include/llvm/MC/MCAsmBackend.h
@@ -92,11 +92,13 @@ public:
virtual const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const;
/// processFixupValue - Target hook to adjust the literal value of a fixup
- /// if necessary. The default does nothing.
+ /// if necessary. IsResolved signals whether the caller believes a relocation
+ /// is needed; the target can modify the value. The default does nothing.
virtual void processFixupValue(const MCAssembler &Asm,
const MCAsmLayout &Layout,
const MCFixup &Fixup, const MCFragment *DF,
- MCValue &Target, uint64_t &Value) {}
+ MCValue &Target, uint64_t &Value,
+ bool &IsResolved) {}
/// @}