summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-20 23:53:56 +0000
committerChris Lattner <sabre@nondot.org>2004-11-20 23:53:56 +0000
commit8c645ec0d31b6e11b02e643d81ba44db595069c3 (patch)
treeb819bd947621a3c579c851618f2bf062cd4247a1 /llvm
parent5f3d274f5ffb6041c852ca3e293b2a99a57bdf56 (diff)
downloadbcm5719-llvm-8c645ec0d31b6e11b02e643d81ba44db595069c3.tar.gz
bcm5719-llvm-8c645ec0d31b6e11b02e643d81ba44db595069c3.zip
We implement these interfaces
llvm-svn: 18065
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/X86/X86JITInfo.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86JITInfo.h b/llvm/lib/Target/X86/X86JITInfo.h
index 75efb19a521..e28cc004364 100644
--- a/llvm/lib/Target/X86/X86JITInfo.h
+++ b/llvm/lib/Target/X86/X86JITInfo.h
@@ -38,11 +38,19 @@ namespace llvm {
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
- /// getJITStubForFunction - Create or return a stub for the specified
- /// function. This stub acts just like the specified function, except that
- /// it allows the "address" of the function to be taken without having to
- /// generate code for it.
- virtual void *getJITStubForFunction(Function *F, MachineCodeEmitter &MCE);
+ /// emitFunctionStub - Use the specified MachineCodeEmitter object to emit a
+ /// small native function that simply calls the function at the specified
+ /// address.
+ virtual void *emitFunctionStub(void *Fn, MachineCodeEmitter &MCE);
+
+ /// getLazyResolverFunction - Expose the lazy resolver to the JIT.
+ virtual LazyResolverFn getLazyResolverFunction(JITCompilerFn);
+
+ /// relocate - Before the JIT can run a block of code that has been emitted,
+ /// it must rewrite the code to contain the actual addresses of any
+ /// referenced global symbols.
+ virtual void relocate(void *Function, MachineRelocation *MR,
+ unsigned NumRelocs);
};
}
OpenPOWER on IntegriCloud