summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-lto/llvm-lto.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/tools/llvm-lto/llvm-lto.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/tools/llvm-lto/llvm-lto.cpp')
-rw-r--r--llvm/tools/llvm-lto/llvm-lto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp
index c536f62833b..e7788f656cd 100644
--- a/llvm/tools/llvm-lto/llvm-lto.cpp
+++ b/llvm/tools/llvm-lto/llvm-lto.cpp
@@ -462,7 +462,7 @@ static void writeModuleToFile(Module &TheModule, StringRef Filename) {
raw_fd_ostream OS(Filename, EC, sys::fs::OpenFlags::F_None);
error(EC, "error opening the file '" + Filename + "'");
maybeVerifyModule(TheModule);
- WriteBitcodeToFile(&TheModule, OS, /* ShouldPreserveUseListOrder */ true);
+ WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true);
}
class ThinLTOProcessing {
OpenPOWER on IntegriCloud