Jump table relocation addresses may be resolved by target.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 7 Nov 2008 09:01:15 +0000 (09:01 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 7 Nov 2008 09:01:15 +0000 (09:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58834 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineRelocation.h

index 9a812a1fadd5f9d1a1959480ce7f468e5b945b23..7393451e35d78a904e1b0d6e3efb41c7511c8ec7 100644 (file)
@@ -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;
   }