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
This commit is contained in:
Brian Gaeke 2003-10-20 15:14:33 +00:00
parent f6cd38d2fc
commit a42649e3dd

View File

@ -8,6 +8,7 @@
#define LLVM_TARGET_TARGETMACHINE_H #define LLVM_TARGET_TARGETMACHINE_H
#include "llvm/Target/TargetData.h" #include "llvm/Target/TargetData.h"
#include <cassert>
class TargetInstrInfo; class TargetInstrInfo;
class TargetInstrDescriptor; class TargetInstrDescriptor;
@ -100,11 +101,12 @@ public:
} }
/// replaceMachineCodeForFunction - Make it so that calling the /// replaceMachineCodeForFunction - Make it so that calling the
/// function whose machine code is at OLD turns into a call to NEW. Returns /// function whose machine code is at OLD turns into a call to NEW,
/// true iff an error occurred. FIXME: this is JIT-specific. /// perhaps by overwriting OLD with a branch to NEW. FIXME: this is
/// JIT-specific.
/// ///
virtual bool replaceMachineCodeForFunction (void *Old, void *New) { virtual void replaceMachineCodeForFunction (void *Old, void *New) {
return true; assert (0 && "Current target cannot replace machine code for functions");
} }
}; };