diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-20 17:59:09 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-20 17:59:09 +0000 |
commit | 0522b0846c3732c7cdd317431733f2e5b6037d8d (patch) | |
tree | 9ad6439577738dd6db6263b969d9acb6024b3a11 /lib/Target/SparcV9/SparcV9CodeEmitter.cpp | |
parent | 1dd27b157bbe7d9e44fa72abbc8b0f08eba804ec (diff) | |
download | external_llvm-0522b0846c3732c7cdd317431733f2e5b6037d8d.zip external_llvm-0522b0846c3732c7cdd317431733f2e5b6037d8d.tar.gz external_llvm-0522b0846c3732c7cdd317431733f2e5b6037d8d.tar.bz2 |
Minor leftover fixups from replaceMachineCodeForFunction () change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9CodeEmitter.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9CodeEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index ccc20e4..4118b2b 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -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); |