summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineRelocation.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-07 09:01:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-07 09:01:15 +0000
commita27b3532e2abd8a5f9972db9d64441d6544798cb (patch)
treea61c7e54c86ff86b2c1492039803df69a133458e /include/llvm/CodeGen/MachineRelocation.h
parentd03eeafd9fc9e96df1f6b13dd55e8864dd6b3291 (diff)
downloadllvm-a27b3532e2abd8a5f9972db9d64441d6544798cb.tar.gz
llvm-a27b3532e2abd8a5f9972db9d64441d6544798cb.tar.bz2
llvm-a27b3532e2abd8a5f9972db9d64441d6544798cb.tar.xz
Jump table relocation addresses may be resolved by target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineRelocation.h')
-rw-r--r--include/llvm/CodeGen/MachineRelocation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineRelocation.h b/include/llvm/CodeGen/MachineRelocation.h
index 9a812a1fad..7393451e35 100644
--- a/include/llvm/CodeGen/MachineRelocation.h
+++ b/include/llvm/CodeGen/MachineRelocation.h
@@ -175,7 +175,8 @@ public:
/// table entry.
///
static MachineRelocation getJumpTable(intptr_t offset,unsigned RelocationType,
- unsigned JTI, intptr_t cst = 0) {
+ unsigned JTI, intptr_t cst = 0,
+ bool letTargetResolve = false) {
assert((RelocationType & ~63) == 0 && "Relocation type too large!");
MachineRelocation Result;
Result.Offset = offset;
@@ -184,7 +185,7 @@ public:
Result.AddrType = isJumpTable;
Result.NeedStub = false;
Result.GOTRelative = false;
- Result.TargetResolve = false;
+ Result.TargetResolve = letTargetResolve;
Result.Target.Index = JTI;
return Result;
}