[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h

Brian Gaeke gaeke at cs.uiuc.edu
Fri Oct 17 13:27:01 PDT 2003


Changes in directory llvm/include/llvm/Target:

TargetMachine.h updated: 1.35 -> 1.36

---
Log message:

Add stub version of replaceMachineCodeForFunction. It will live here until
we have a better place for it to go. 


---
Diffs of the changes:  (+8 -0)

Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.35 llvm/include/llvm/Target/TargetMachine.h:1.36
--- llvm/include/llvm/Target/TargetMachine.h:1.35	Tue Sep 30 13:37:47 2003
+++ llvm/include/llvm/Target/TargetMachine.h	Fri Oct 17 13:26:45 2003
@@ -98,6 +98,14 @@
                                           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





More information about the llvm-commits mailing list