aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetJITInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Target/TargetJITInfo.h')
-rw-r--r--include/llvm/Target/TargetJITInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetJITInfo.h b/include/llvm/Target/TargetJITInfo.h
index b4ab5bc..3be6cb7 100644
--- a/include/llvm/Target/TargetJITInfo.h
+++ b/include/llvm/Target/TargetJITInfo.h
@@ -40,6 +40,13 @@ namespace llvm {
///
virtual void replaceMachineCodeForFunction(void *Old, void *New) = 0;
+ /// 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) {
+ assert(0 && "This target doesn't implement emitGlobalValueLazyPtr!");
+ return 0;
+ }
+
/// emitFunctionStub - Use the specified MachineCodeEmitter object to emit a
/// small native function that simply calls the function at the specified
/// address. Return the address of the resultant function.