summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/LTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-02-14 19:11:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-02-14 19:11:32 +0000
commit6a86e25d90303dd84f179cbe07db9c08eb8161eb (patch)
tree4ae81941bb37548c3242991b87afe00a87583d76 /llvm/lib/LTO/LTOCodeGenerator.cpp
parent6d9cf8aa9d7cad2070f228ed00217ec3c5037d80 (diff)
downloadbcm5719-llvm-6a86e25d90303dd84f179cbe07db9c08eb8161eb.tar.gz
bcm5719-llvm-6a86e25d90303dd84f179cbe07db9c08eb8161eb.zip
Pass a reference to a module to the bitcode writer.
This simplifies most callers as they are already using references or std::unique_ptr. llvm-svn: 325155
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index c7306df95d3..ffe9af74cdc 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -220,7 +220,7 @@ bool LTOCodeGenerator::writeMergedModules(StringRef Path) {
}
// write bitcode to it
- WriteBitcodeToFile(MergedModule.get(), Out.os(), ShouldEmbedUselists);
+ WriteBitcodeToFile(*MergedModule, Out.os(), ShouldEmbedUselists);
Out.os().close();
if (Out.os().has_error()) {
OpenPOWER on IntegriCloud