1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Add new getJITStubForFunction method, which may optionally be implemented by

targets for better performance.

llvm-svn: 10429
This commit is contained in:
Chris Lattner 2003-12-12 07:10:32 +00:00
parent f0ded5c697
commit 18e6e48ff0

View File

@ -111,12 +111,21 @@ public:
/// replaceMachineCodeForFunction - Make it so that calling the
/// function whose machine code is at OLD turns into a call to NEW,
/// perhaps by overwriting OLD with a branch to NEW. FIXME: this is
/// JIT-specific.
/// perhaps by overwriting OLD with a branch to NEW.
///
/// FIXME: this is JIT-specific.
///
virtual void replaceMachineCodeForFunction (void *Old, void *New) {
assert (0 && "Current target cannot replace machine code for functions");
}
/// 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) {
return 0;
}
};
} // End llvm namespace