[cfe-commits] r104886 - /cfe/trunk/include/clang/CodeGen/ModuleBuilder.h

Dan Gohman gohman at apple.com
Thu May 27 13:28:55 PDT 2010


Author: djg
Date: Thu May 27 15:28:55 2010
New Revision: 104886

URL: http://llvm.org/viewvc/llvm-project?rev=104886&view=rev
Log:
Add a comment to mention the memory ownership situation.

Modified:
    cfe/trunk/include/clang/CodeGen/ModuleBuilder.h

Modified: cfe/trunk/include/clang/CodeGen/ModuleBuilder.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/CodeGen/ModuleBuilder.h?rev=104886&r1=104885&r2=104886&view=diff
==============================================================================
--- cfe/trunk/include/clang/CodeGen/ModuleBuilder.h (original)
+++ cfe/trunk/include/clang/CodeGen/ModuleBuilder.h Thu May 27 15:28:55 2010
@@ -33,6 +33,9 @@
     virtual llvm::Module* ReleaseModule() = 0;
   };
 
+  /// CreateLLVMCodeGen - Create a CodeGenerator instance.
+  /// It is the responsibility of the caller to call delete on
+  /// the allocated CodeGenerator instance.
   CodeGenerator *CreateLLVMCodeGen(Diagnostic &Diags,
                                    const std::string &ModuleName,
                                    const CodeGenOptions &CGO,





More information about the cfe-commits mailing list