summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/BugDriver.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-12-01 19:50:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-12-01 19:50:54 +0000
commit0e309fe860afa93bcb25685cac8a97b1316fa0a8 (patch)
tree512b6343a81006827c49f423c2953f178c71dc15 /llvm/tools/bugpoint/BugDriver.cpp
parent9cb01aa30a42c78248fea0a5c7335292718706b2 (diff)
downloadbcm5719-llvm-0e309fe860afa93bcb25685cac8a97b1316fa0a8.tar.gz
bcm5719-llvm-0e309fe860afa93bcb25685cac8a97b1316fa0a8.zip
Use references now that it is natural to do so.
The linker never takes ownership of a module or changes which module it is refering to, making it natural to use references. llvm-svn: 254449
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.cpp')
-rw-r--r--llvm/tools/bugpoint/BugDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp
index d0731f5f6d3..39887d5d59d 100644
--- a/llvm/tools/bugpoint/BugDriver.cpp
+++ b/llvm/tools/bugpoint/BugDriver.cpp
@@ -132,7 +132,7 @@ bool BugDriver::addSources(const std::vector<std::string> &Filenames) {
if (!M.get()) return true;
outs() << "Linking in input file: '" << Filenames[i] << "'\n";
- if (Linker::LinkModules(Program, M.get()))
+ if (Linker::linkModules(*Program, *M))
return true;
}
OpenPOWER on IntegriCloud