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

Chris Lattner lattner at cs.uiuc.edu
Mon Dec 2 15:16:03 PST 2002


Changes in directory llvm/include/llvm/Target:

TargetMachine.h updated: 1.22 -> 1.23

---
Log message:

The hopefully final version of addPassesToEmitMachineCode which does not
have any question about ownership


---
Diffs of the changes:

Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.22 llvm/include/llvm/Target/TargetMachine.h:1.23
--- llvm/include/llvm/Target/TargetMachine.h:1.22	Mon Dec  2 15:13:45 2002
+++ llvm/include/llvm/Target/TargetMachine.h	Mon Dec  2 15:15:42 2002
@@ -97,11 +97,10 @@
   /// get machine code emitted.  This uses a MAchineCodeEmitter object to handle
   /// actually outputting the machine code and resolving things like the address
   /// of functions.  This method should returns true if machine code emission is
-  /// not supported.  The ownership of the MCE is not transfered to the backend
-  /// pass... the caller of this method should delete it.
+  /// not supported.
   ///
   virtual bool addPassesToEmitMachineCode(PassManager &PM,
-                                          MachineCodeEmitter *MCE) {
+                                          MachineCodeEmitter &MCE) {
     return true;
   }
 };





More information about the llvm-commits mailing list