mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Minor leftover fixups from replaceMachineCodeForFunction () change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1dd27b157b
commit
0522b0846c
@ -563,7 +563,8 @@ inline void SparcV9CodeEmitter::emitFarCall(uint64_t Target, Function *F) {
|
||||
}
|
||||
|
||||
void UltraSparc::replaceMachineCodeForFunction (void *Old, void *New) {
|
||||
if (!TheJITResolver) return true; // fail if not in JIT.
|
||||
assert (TheJITResolver &&
|
||||
"Can only call replaceMachineCodeForFunction from within JIT");
|
||||
uint64_t Target = (uint64_t)(intptr_t)New;
|
||||
uint64_t CodeBegin = (uint64_t)(intptr_t)Old;
|
||||
TheJITResolver->insertJumpAtAddr(Target, CodeBegin);
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
|
||||
virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
|
||||
|
||||
virtual bool replaceMachineCodeForFunction (void *Old, void *New);
|
||||
virtual void replaceMachineCodeForFunction (void *Old, void *New);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user