Update the error handling of lib/Linker.
[oota-llvm.git] / tools / bugpoint / BugDriver.cpp
index a87610422c2acbab217de20f9dc1e19a561c6b27..b54ea2387b3f733d044895cd9f468e926aac5acd 100644 (file)
@@ -126,13 +126,8 @@ bool BugDriver::addSources(const std::vector<std::string> &Filenames) {
     if (!M.get()) return true;
 
     outs() << "Linking in input file: '" << Filenames[i] << "'\n";
-    std::string ErrorMessage;
-    if (Linker::LinkModules(Program, M.get(), Linker::DestroySource,
-                            &ErrorMessage)) {
-      errs() << ToolName << ": error linking in '" << Filenames[i] << "': "
-             << ErrorMessage << '\n';
+    if (Linker::LinkModules(Program, M.get(), Linker::DestroySource))
       return true;
-    }
   }
 
   outs() << "*** All input ok\n";