Add comment about ownership semantics
authorChris Lattner <sabre@nondot.org>
Mon, 2 Dec 2002 21:13:45 +0000 (21:13 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 2 Dec 2002 21:13:45 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4859 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetMachine.h

index 0440cccdc5d81eebdd398a57b4c60a7943599e49..0e80d4718a1eb93bbee3b3594a50ea37fa19f9e7 100644 (file)
@@ -97,7 +97,8 @@ public:
   /// 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.
+  /// not supported.  The ownership of the MCE is not transfered to the backend
+  /// pass... the caller of this method should delete it.
   ///
   virtual bool addPassesToEmitMachineCode(PassManager &PM,
                                           MachineCodeEmitter *MCE) {