summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2017-04-13 03:51:35 +0000
committerLang Hames <lhames@gmail.com>2017-04-13 03:51:35 +0000
commitffad0103c7b7c964e8b25a80b36f3a122347f3bc (patch)
tree3f6f21a2b76f4a6cbf1b26e67f65d4f6b59bff84 /llvm/lib/ExecutionEngine
parent80dcad097740d2abddb616fe92edf561e63d6a99 (diff)
downloadbcm5719-llvm-ffad0103c7b7c964e8b25a80b36f3a122347f3bc.tar.gz
bcm5719-llvm-ffad0103c7b7c964e8b25a80b36f3a122347f3bc.zip
[ORC] Add RPC and serialization support for Errors and Expecteds.
This patch allows Error and Expected types to be passed to and returned from RPC functions. Serializers and deserializers for custom error types (types deriving from the ErrorInfo class template) can be registered with the SerializationTraits for a given channel type (see registerStringError in RPCSerialization.h for an example), allowing a given custom type to be sent/received. Unregistered types will be serialized/deserialized as StringErrors using the custom type's log message as the error string. llvm-svn: 300167
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/OrcError.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/OrcError.cpp b/llvm/lib/ExecutionEngine/Orc/OrcError.cpp
index c1f228c98cb..9e70c4ac1db 100644
--- a/llvm/lib/ExecutionEngine/Orc/OrcError.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/OrcError.cpp
@@ -49,6 +49,9 @@ public:
return "Unexpected RPC call";
case OrcErrorCode::UnexpectedRPCResponse:
return "Unexpected RPC response";
+ case OrcErrorCode::UnknownErrorCodeFromRemote:
+ return "Unknown error returned from remote RPC function "
+ "(Use StringError to get error message)";
}
llvm_unreachable("Unhandled error code");
}
OpenPOWER on IntegriCloud