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:
Brian Gaeke 2003-10-20 17:59:09 +00:00
parent 1dd27b157b
commit 0522b0846c
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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