diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 17:06:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 17:06:04 +0000 |
commit | 2530f6711664f8536a98861cbade091c7c6bf99b (patch) | |
tree | 998a1713f85e936ee722072c3edf1e1ab5961c39 /lld/lib/Driver/Driver.cpp | |
parent | 658a378542c87ee0432a3f29efc76e5e3e4669db (diff) | |
download | bcm5719-llvm-2530f6711664f8536a98861cbade091c7c6bf99b.tar.gz bcm5719-llvm-2530f6711664f8536a98861cbade091c7c6bf99b.zip |
Don't pass llvm::errs() all over the place. Diagnostics always go to stderr.
llvm-svn: 185657
Diffstat (limited to 'lld/lib/Driver/Driver.cpp')
-rw-r--r-- | lld/lib/Driver/Driver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp index a0233fef74d..c9a9918f9ae 100644 --- a/lld/lib/Driver/Driver.cpp +++ b/lld/lib/Driver/Driver.cpp @@ -29,7 +29,7 @@ namespace lld { /// This is where the link is actually performed. -bool Driver::link(const TargetInfo &targetInfo, raw_ostream &diagnostics) { +bool Driver::link(const TargetInfo &targetInfo) { // Honor -mllvm if (!targetInfo.llvmOptions().empty()) { unsigned numArgs = targetInfo.llvmOptions().size(); @@ -52,10 +52,10 @@ bool Driver::link(const TargetInfo &targetInfo, raw_ostream &diagnostics) { if (targetInfo.logInputFiles()) llvm::outs() << input.getPath() << "\n"; - tg.spawn([&, index] { + tg.spawn([ &, index]{ if (error_code ec = targetInfo.readFile(input.getPath(), files[index])) { - diagnostics << "Failed to read file: " << input.getPath() - << ": " << ec.message() << "\n"; + llvm::errs() << "Failed to read file: " << input.getPath() << ": " + << ec.message() << "\n"; fail = true; return; } @@ -98,8 +98,8 @@ bool Driver::link(const TargetInfo &targetInfo, raw_ostream &diagnostics) { // Give linked atoms to Writer to generate output file. ScopedTask writeTask(getDefaultDomain(), "Write"); if (error_code ec = targetInfo.writeFile(merged)) { - diagnostics << "Failed to write file '" << targetInfo.outputPath() - << "': " << ec.message() << "\n"; + llvm::errs() << "Failed to write file '" << targetInfo.outputPath() + << "': " << ec.message() << "\n"; return true; } |