summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cxxdump
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-11 01:46:03 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-11 01:46:03 +0000
commit45eb84f34044c2e3c83f420c9bbdcdf028eb80c4 (patch)
tree393e63edefba1bf8f317f27f522b2ec9db06efe0 /llvm/tools/llvm-cxxdump
parentef33a190bccc782a505ff0b18cadc278ec682926 (diff)
downloadbcm5719-llvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.tar.gz
bcm5719-llvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.zip
[Support] Make error banner optional in logAllUnhandledErrors
In a lot of places an empty string was passed as the ErrorBanner to logAllUnhandledErrors. This patch makes that argument optional to simplify the call sites. llvm-svn: 346604
Diffstat (limited to 'llvm/tools/llvm-cxxdump')
-rw-r--r--llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp b/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
index 40db5c933f0..7594066a395 100644
--- a/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
+++ b/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
@@ -52,7 +52,8 @@ static void error(std::error_code EC) {
static void error(Error Err) {
if (!Err)
return;
- logAllUnhandledErrors(std::move(Err), WithColor::error(outs(), ""), "reading file: ");
+ logAllUnhandledErrors(std::move(Err), WithColor::error(outs()),
+ "reading file: ");
outs().flush();
exit(1);
}
@@ -497,7 +498,7 @@ static void dumpArchive(const Archive *Arc) {
if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) {
std::string Buf;
raw_string_ostream OS(Buf);
- logAllUnhandledErrors(std::move(E), OS, "");
+ logAllUnhandledErrors(std::move(E), OS);
OS.flush();
reportError(Arc->getFileName(), Buf);
}
OpenPOWER on IntegriCloud