aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86Relocations.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-22 09:40:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-22 09:40:20 +0000
commitaabe38bf0c773dffed5c12a35e894915418af512 (patch)
treeefcc3165fb64519ff1784903112d725c8682d5d2 /lib/Target/X86/X86Relocations.h
parenta9ab84666927e2ecb79bc7cba6c0df0c88c03912 (diff)
downloadexternal_llvm-aabe38bf0c773dffed5c12a35e894915418af512.zip
external_llvm-aabe38bf0c773dffed5c12a35e894915418af512.tar.gz
external_llvm-aabe38bf0c773dffed5c12a35e894915418af512.tar.bz2
Preliminary PIC JIT support for X86 (32-bit) / Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Relocations.h')
-rw-r--r--lib/Target/X86/X86Relocations.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Target/X86/X86Relocations.h b/lib/Target/X86/X86Relocations.h
index 3dd2b24..097c2a2 100644
--- a/lib/Target/X86/X86Relocations.h
+++ b/lib/Target/X86/X86Relocations.h
@@ -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
};
}
}