aboutsummaryrefslogtreecommitdiff
path: root/include/clang/CodeGen/ModuleBuilder.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 20:28:55 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 20:28:55 +0000
commit690c2e22d48c37fa590e9e93595fc5c5ee0d1eab (patch)
treef4115059ab4a651863cbe1a7bb4b5ac14e6bfac2 /include/clang/CodeGen/ModuleBuilder.h
parentebaf2573ccfcfef179904db1aae965b5b778c72d (diff)
Add a comment to mention the memory ownership situation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/CodeGen/ModuleBuilder.h')
-rw-r--r--include/clang/CodeGen/ModuleBuilder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h
index 2a3aa6a904..c45ad08716 100644
--- a/include/clang/CodeGen/ModuleBuilder.h
+++ b/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,