diff options
author | Lang Hames <lhames@gmail.com> | 2016-11-12 02:19:31 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-11-12 02:19:31 +0000 |
commit | 03418af0464063af381a6a715d00f749da95f6e2 (patch) | |
tree | d848794e918cd0fe1c33cfed4c7e78f53f757e38 /llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp | |
parent | 8fa568d761183c9c34f6fffa64fe541fe5277376 (diff) | |
download | bcm5719-llvm-03418af0464063af381a6a715d00f749da95f6e2.tar.gz bcm5719-llvm-03418af0464063af381a6a715d00f749da95f6e2.zip |
[ORC] Add a WrappedHandlerReturn type to map handler return types onto error
return types.
This class allows user provided handlers to return either error-wrapped types
or plain types. In the latter case, the plain type is wrapped with a success
value of Error or Expected<T> type to fit it into the rest of the serialization
machinery.
This patch allows us to remove the RPC unit-test workaround added in r286646.
llvm-svn: 286701
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp')
-rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp index 565ebfa3f8f..4d703c78a0e 100644 --- a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp @@ -191,7 +191,7 @@ TEST(DummyRPC, TestSerialization) { Server.addHandler<DummyRPCAPI::AllTheTypes>( [&](int8_t S8, uint8_t U8, int16_t S16, uint16_t U16, int32_t S32, uint32_t U32, int64_t S64, uint64_t U64, - bool B, std::string S, std::vector<int> V) -> Error { + bool B, std::string S, std::vector<int> V) { EXPECT_EQ(S8, -101) << "int8_t serialization broken"; EXPECT_EQ(U8, 250) << "uint8_t serialization broken"; |