summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/Orc
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/unittests/ExecutionEngine/Orc
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/unittests/ExecutionEngine/Orc')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp
index ae408a06f84..09224c289b4 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp
@@ -112,10 +112,9 @@ TEST(RemoteObjectLayer, AddObject) {
auto Channels = createPairedQueueChannels();
- auto ReportError =
- [](Error Err) {
- logAllUnhandledErrors(std::move(Err), llvm::errs(), "");
- };
+ auto ReportError = [](Error Err) {
+ logAllUnhandledErrors(std::move(Err), llvm::errs());
+ };
// Copy the bytes out of the test object: the copy will be used to verify
// that the original is correctly transmitted over RPC to the mock layer.
@@ -225,10 +224,9 @@ TEST(RemoteObjectLayer, RemoveObject) {
auto Channels = createPairedQueueChannels();
- auto ReportError =
- [](Error Err) {
- logAllUnhandledErrors(std::move(Err), llvm::errs(), "");
- };
+ auto ReportError = [](Error Err) {
+ logAllUnhandledErrors(std::move(Err), llvm::errs());
+ };
RPCEndpoint ClientEP(*Channels.first, true);
RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError);
@@ -489,10 +487,9 @@ TEST(RemoteObjectLayer, EmitAndFinalize) {
auto Channels = createPairedQueueChannels();
- auto ReportError =
- [](Error Err) {
- logAllUnhandledErrors(std::move(Err), llvm::errs(), "");
- };
+ auto ReportError = [](Error Err) {
+ logAllUnhandledErrors(std::move(Err), llvm::errs());
+ };
RPCEndpoint ClientEP(*Channels.first, true);
RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError);
OpenPOWER on IntegriCloud