diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-11 01:46:03 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-11 01:46:03 +0000 |
commit | 45eb84f34044c2e3c83f420c9bbdcdf028eb80c4 (patch) | |
tree | 393e63edefba1bf8f317f27f522b2ec9db06efe0 /llvm/lib/Object/Object.cpp | |
parent | ef33a190bccc782a505ff0b18cadc278ec682926 (diff) | |
download | llvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.zip llvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.tar.gz llvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.tar.bz2 |
[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/lib/Object/Object.cpp')
-rw-r--r-- | llvm/lib/Object/Object.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Object/Object.cpp b/llvm/lib/Object/Object.cpp index 5fd823e..c932e5b 100644 --- a/llvm/lib/Object/Object.cpp +++ b/llvm/lib/Object/Object.cpp @@ -105,7 +105,7 @@ void LLVMMoveToContainingSection(LLVMSectionIteratorRef Sect, if (!SecOrErr) { std::string Buf; raw_string_ostream OS(Buf); - logAllUnhandledErrors(SecOrErr.takeError(), OS, ""); + logAllUnhandledErrors(SecOrErr.takeError(), OS); OS.flush(); report_fatal_error(Buf); } @@ -187,7 +187,7 @@ const char *LLVMGetSymbolName(LLVMSymbolIteratorRef SI) { if (!Ret) { std::string Buf; raw_string_ostream OS(Buf); - logAllUnhandledErrors(Ret.takeError(), OS, ""); + logAllUnhandledErrors(Ret.takeError(), OS); OS.flush(); report_fatal_error(Buf); } @@ -199,7 +199,7 @@ uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI) { if (!Ret) { std::string Buf; raw_string_ostream OS(Buf); - logAllUnhandledErrors(Ret.takeError(), OS, ""); + logAllUnhandledErrors(Ret.takeError(), OS); OS.flush(); report_fatal_error(Buf); } |