[Orc] Add overloads of RPC::handle and RPC::expect that take member functions as
authorLang Hames <lhames@gmail.com>
Tue, 12 Jan 2016 06:48:52 +0000 (06:48 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 12 Jan 2016 06:48:52 +0000 (06:48 +0000)
commitd696c2c2a2687fa99e2ecc2f950a7caec0e1fbf2
tree41cb4427526ddda2421190df83f014fbd0f37536
parentf4afe812032187badbde45a4aa35006483d4a1d5
[Orc] Add overloads of RPC::handle and RPC::expect that take member functions as
handlers.

It is expected that RPC handlers will usually be member functions. Accepting them
directly in handle and expect allows for the remove of a lot of lambdas an
explicit error variables.

This patch also uses this new feature to substantially tidy up the
OrcRemoteTargetServer class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257452 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
include/llvm/ExecutionEngine/Orc/RPCUtils.h