OSDN Git Service

[ORC] Add SerializationTraits for std::set and std::map.
authorLang Hames <lhames@gmail.com>
Mon, 30 Jul 2018 21:08:06 +0000 (21:08 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 30 Jul 2018 21:08:06 +0000 (21:08 +0000)
commit865d24fcb4446db39e61ff1c9bd818cf64e2c938
treef403cd30ee60b8010eef9af4fb1f97b8619bef9e
parente9f23bb5b175e3153e3dcab592f4aa8638d89c1a
[ORC] Add SerializationTraits for std::set and std::map.

Also, make SerializationTraits for pairs forward the actual pair
template type arguments to the underlying serializer. This allows, for example,
std::pair<StringRef, bool> to be passed as an argument to an RPC call expecting
a std::pair<std::string, bool>, since there is an underlying serializer from
StringRef to std::string that can be used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338305 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/RPCSerialization.h
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp