OSDN Git Service

[ORC] Thread Error/Expected through the RPC library.
authorLang Hames <lhames@gmail.com>
Mon, 25 Apr 2016 19:56:45 +0000 (19:56 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 25 Apr 2016 19:56:45 +0000 (19:56 +0000)
commit1ddbb0f0b5f63ae1b8a55caf3ea8dc163b0a4963
tree0096493d995d5cb2c702b42dcf96f9da5c5f7dba
parent3a1034db384d6e74854ac5051c95c8da0ceae509
[ORC] Thread Error/Expected through the RPC library.

This replaces use of std::error_code and ErrorOr in the ORC RPC support library
with Error and Expected. This required updating the OrcRemoteTarget API, Client,
and server code, as well as updating the Orc C API.

This patch also fixes several instances where Errors were dropped.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267457 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm-c/OrcBindings.h
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
include/llvm/ExecutionEngine/Orc/OrcArchitectureSupport.h
include/llvm/ExecutionEngine/Orc/OrcError.h
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
include/llvm/ExecutionEngine/Orc/RPCChannel.h
include/llvm/ExecutionEngine/Orc/RPCUtils.h
lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp
lib/ExecutionEngine/Orc/OrcCBindings.cpp
lib/ExecutionEngine/Orc/OrcCBindingsStack.h
lib/ExecutionEngine/Orc/OrcError.cpp
tools/lli/ChildTarget/ChildTarget.cpp
tools/lli/RemoteJITUtils.h
tools/lli/lli.cpp
unittests/ExecutionEngine/Orc/CompileOnDemandLayerTest.cpp
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp