summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86JITInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-01-04 10:46:51 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-01-04 10:46:51 +0000
commitbe8c03fc66b75fa775e1f47d62a1b0d803fced1c (patch)
treef7d4aff605c112d72392dd096356c1b12e72ce62 /lib/Target/X86/X86JITInfo.h
parent2674d71df02f562cf8c3bc011be92d6dcb9cd9aa (diff)
downloadllvm-be8c03fc66b75fa775e1f47d62a1b0d803fced1c.tar.gz
llvm-be8c03fc66b75fa775e1f47d62a1b0d803fced1c.tar.bz2
llvm-be8c03fc66b75fa775e1f47d62a1b0d803fced1c.tar.xz
X86 PIC JIT support fixes: encoding bugs, add lazy pointer stubs support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86JITInfo.h')
-rw-r--r--lib/Target/X86/X86JITInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86JITInfo.h b/lib/Target/X86/X86JITInfo.h
index af5016def9..f1639040c4 100644
--- a/lib/Target/X86/X86JITInfo.h
+++ b/lib/Target/X86/X86JITInfo.h
@@ -31,6 +31,10 @@ namespace llvm {
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
+ /// emitGlobalValueLazyPtr - Use the specified MachineCodeEmitter object to
+ /// emit a lazy pointer which contains the address of the specified GV.
+ virtual void *emitGlobalValueLazyPtr(void *GV, MachineCodeEmitter &MCE);
+
/// emitFunctionStub - Use the specified MachineCodeEmitter object to emit a
/// small native function that simply calls the function at the specified
/// address.