summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-12-18 23:33:10 +0000
committerRui Ueyama <ruiu@google.com>2018-12-18 23:33:10 +0000
commit596180964012b05659409f56bc882bebb47224a1 (patch)
treeaa8f436dd41f9adc3c29b2c611fabaf9ba50f5ab
parentf5ffa1a67ceaac391f9d49a0f1182fced433b0f1 (diff)
downloadbcm5719-llvm-596180964012b05659409f56bc882bebb47224a1.tar.gz
bcm5719-llvm-596180964012b05659409f56bc882bebb47224a1.zip
Fix error message.
Previously, this code printed out an error message like this ld.lld: error: --reproduce: failed to open /foo: cannot open /foo Apparently "failed to open /foo:" part is redundant. llvm-svn: 349571
-rw-r--r--lld/ELF/Driver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 1da557493c1..1888edc025c 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -407,8 +407,7 @@ void LinkerDriver::main(ArrayRef<const char *> ArgsArr) {
Tar->append("version.txt", getLLDVersion() + "\n");
make<std::unique_ptr<TarWriter>>(std::move(*ErrOrWriter));
} else {
- error(Twine("--reproduce: failed to open ") + Path + ": " +
- toString(ErrOrWriter.takeError()));
+ error("--reproduce: " + toString(ErrOrWriter.takeError()));
}
}
OpenPOWER on IntegriCloud