From: Brian Gaeke Date: Fri, 17 Oct 2003 18:26:45 +0000 (+0000) Subject: Add stub version of replaceMachineCodeForFunction. It will live here until X-Git-Tag: android-x86-6.0-r1~1003^2~58711 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5358bc39c11868390fd444a04149d6964f8fdc62;p=android-x86%2Fexternal-llvm.git Add stub version of replaceMachineCodeForFunction. It will live here until we have a better place for it to go. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9197 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 447355e240a..e8380f372d1 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -98,6 +98,14 @@ public: MachineCodeEmitter &MCE) { return true; } + + /// 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. + /// + virtual bool replaceMachineCodeForFunction (void *Old, void *New) { + return true; + } }; #endif