summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/lto.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-08-24 22:22:53 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-08-24 22:22:53 +0000
commit9c8909dbd10900af1bc59e038eb321e05343f276 (patch)
treecc9e674b0bec1f34a10a7c24aa1498591ea4035e /llvm/include/llvm-c/lto.h
parentab229c13a65bbec8f3b489ce62d1bbfbfad05bbd (diff)
downloadbcm5719-llvm-9c8909dbd10900af1bc59e038eb321e05343f276.tar.gz
bcm5719-llvm-9c8909dbd10900af1bc59e038eb321e05343f276.zip
LTO: Simplify merged module ownership.
This change moves LTOCodeGenerator's ownership of the merged module to a field of type std::unique_ptr<Module>. This helps simplify parts of the code and clears the way for the module to be consumed by LLVM CodeGen (see D12132 review comments). Differential Revision: http://reviews.llvm.org/D12205 llvm-svn: 245891
Diffstat (limited to 'llvm/include/llvm-c/lto.h')
-rw-r--r--llvm/include/llvm-c/lto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index cb3a6916045..691a0cd3f55 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/include/llvm-c/lto.h
@@ -374,8 +374,8 @@ extern lto_bool_t
lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
/**
- * Sets the object module for code generation. This will transfer the ownship of
- * the module to code generator.
+ * Sets the object module for code generation. This will transfer the ownership
+ * of the module to the code generator.
*
* \c cg and \c mod must both be in the same context.
*
OpenPOWER on IntegriCloud