summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
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/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
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/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index f9a81c7bd1b..226ee715e18 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -255,7 +255,7 @@ RuntimeDyldELF::loadObject(const object::ObjectFile &O) {
else {
HasError = true;
raw_string_ostream ErrStream(ErrorStr);
- logAllUnhandledErrors(ObjSectionToIDOrErr.takeError(), ErrStream, "");
+ logAllUnhandledErrors(ObjSectionToIDOrErr.takeError(), ErrStream);
return nullptr;
}
}
@@ -1130,7 +1130,7 @@ RuntimeDyldELF::processRelocationRef(
if (!SymTypeOrErr) {
std::string Buf;
raw_string_ostream OS(Buf);
- logAllUnhandledErrors(SymTypeOrErr.takeError(), OS, "");
+ logAllUnhandledErrors(SymTypeOrErr.takeError(), OS);
OS.flush();
report_fatal_error(Buf);
}
@@ -1151,7 +1151,7 @@ RuntimeDyldELF::processRelocationRef(
if (!SectionOrErr) {
std::string Buf;
raw_string_ostream OS(Buf);
- logAllUnhandledErrors(SectionOrErr.takeError(), OS, "");
+ logAllUnhandledErrors(SectionOrErr.takeError(), OS);
OS.flush();
report_fatal_error(Buf);
}
OpenPOWER on IntegriCloud