Preliminary PIC JIT support for X86 (32-bit) / Darwin.
[oota-llvm.git] / lib / Target / X86 / X86Relocations.h
index 3dd2b246faa708100bb27996ee21598b7cc08db9..097c2a278c0664527c0875dee5d5e5af1ffd1b49 100644 (file)
@@ -23,10 +23,15 @@ namespace llvm {
       // the value already in memory, after we adjust it for where the PC is.
       reloc_pcrel_word = 0,
 
+      // reloc_picrel_word - PIC base relative relocation, add the relocated
+      // value to the value already in memory, after we adjust it for where the
+      // PIC base is.
+      reloc_picrel_word = 1,
+      
       // reloc_absolute_word, reloc_absolute_dword - Absolute relocation, just
       // add the relocated value to the value already in memory.
-      reloc_absolute_word = 1,
-      reloc_absolute_dword = 2
+      reloc_absolute_word = 2,
+      reloc_absolute_dword = 3
     };
   }
 }