diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-27 20:28:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-27 20:28:55 +0000 |
commit | d877f2a0139b8c3ed9c85b1687f410a09541f1e7 (patch) | |
tree | d9f3ce89f12c9fa8021703ca62cdba0ac9fa3412 | |
parent | a880546c65c984f31b9c52db35faa95f9d18a4b0 (diff) | |
download | bcm5719-llvm-d877f2a0139b8c3ed9c85b1687f410a09541f1e7.tar.gz bcm5719-llvm-d877f2a0139b8c3ed9c85b1687f410a09541f1e7.zip |
Add a comment to mention the memory ownership situation.
llvm-svn: 104886
-rw-r--r-- | clang/include/clang/CodeGen/ModuleBuilder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/CodeGen/ModuleBuilder.h b/clang/include/clang/CodeGen/ModuleBuilder.h index 2a3aa6a9040..c45ad08716c 100644 --- a/clang/include/clang/CodeGen/ModuleBuilder.h +++ b/clang/include/clang/CodeGen/ModuleBuilder.h @@ -33,6 +33,9 @@ namespace clang { 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, |