diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-20 15:14:33 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-20 15:14:33 +0000 |
commit | a42649e3dd4c8be2d45451429a41f2b13dbeeb78 (patch) | |
tree | 2d9e72b7e2d2b982e4d506e7a360e32552b5e4ca /include/llvm/Target/TargetMachine.h | |
parent | f6cd38d2fc57f9ccd867a69506219fedb28343a0 (diff) | |
download | external_llvm-a42649e3dd4c8be2d45451429a41f2b13dbeeb78.zip external_llvm-a42649e3dd4c8be2d45451429a41f2b13dbeeb78.tar.gz external_llvm-a42649e3dd4c8be2d45451429a41f2b13dbeeb78.tar.bz2 |
Make replaceMachineCodeForFunction return void.
Make it assert by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index e8380f3..a40f7a1 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -8,6 +8,7 @@ #define LLVM_TARGET_TARGETMACHINE_H #include "llvm/Target/TargetData.h" +#include <cassert> class TargetInstrInfo; class TargetInstrDescriptor; @@ -100,11 +101,12 @@ public: } /// replaceMachineCodeForFunction - Make it so that calling the - /// function whose machine code is at OLD turns into a call to NEW. Returns - /// true iff an error occurred. FIXME: this is JIT-specific. + /// 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. /// - virtual bool replaceMachineCodeForFunction (void *Old, void *New) { - return true; + virtual void replaceMachineCodeForFunction (void *Old, void *New) { + assert (0 && "Current target cannot replace machine code for functions"); } }; |