From 45eb84f34044c2e3c83f420c9bbdcdf028eb80c4 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 11 Nov 2018 01:46:03 +0000 Subject: [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 --- llvm/lib/Object/Object.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Object/Object.cpp') 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); } -- cgit v1.1