[llvm-commits] [llvm] r58834 - /llvm/trunk/include/llvm/CodeGen/MachineRelocation.h

Evan Cheng evan.cheng at apple.com
Fri Nov 7 01:01:15 PST 2008


Author: evancheng
Date: Fri Nov  7 03:01:15 2008
New Revision: 58834

URL: http://llvm.org/viewvc/llvm-project?rev=58834&view=rev
Log:
Jump table relocation addresses may be resolved by target.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineRelocation.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineRelocation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineRelocation.h?rev=58834&r1=58833&r2=58834&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineRelocation.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineRelocation.h Fri Nov  7 03:01:15 2008
@@ -175,7 +175,8 @@
   /// 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 @@
     Result.AddrType = isJumpTable;
     Result.NeedStub = false;
     Result.GOTRelative = false;
-    Result.TargetResolve = false;
+    Result.TargetResolve = letTargetResolve;
     Result.Target.Index = JTI;
     return Result;
   }





More information about the llvm-commits mailing list