From 5358bc39c11868390fd444a04149d6964f8fdc62 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 17 Oct 2003 18:26:45 +0000 Subject: [PATCH] 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 --- include/llvm/Target/TargetMachine.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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