Add stub version of replaceMachineCodeForFunction. It will live here until
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 17 Oct 2003 18:26:45 +0000 (18:26 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 17 Oct 2003 18:26:45 +0000 (18:26 +0000)
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

index 447355e240a0e88ae5af6ef23353d74556d72fda..e8380f372d15bd23af532b6b4db72205caa4706f 100644 (file)
@@ -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