summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-12-21 02:08:23 +0000
committerLang Hames <lhames@gmail.com>2016-12-21 02:08:23 +0000
commitf4dd5e3586b702fab32bbb3e70e7edfe084c9a51 (patch)
tree8bbabefb779e961b184d98aae0b32ed9c8d8cdcf /llvm/unittests/ExecutionEngine
parent505ef81422b96a1e3ff87b942ff1e1a45f3d0f00 (diff)
downloadbcm5719-llvm-f4dd5e3586b702fab32bbb3e70e7edfe084c9a51.tar.gz
bcm5719-llvm-f4dd5e3586b702fab32bbb3e70e7edfe084c9a51.zip
[Orc][RPC] Actually specialize SerializationTraits and RPCTypeName in the right
namespace. r290226 was a think-o - just qualifying the name doesn't count. llvm-svn: 290230
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp64
1 files changed, 40 insertions, 24 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
index 6a2d1fb2d01..f9b65a99505 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
@@ -60,38 +60,54 @@ private:
class RPCFoo {};
-template <>
-class llvm::orc::rpc::RPCTypeName<RPCFoo> {
-public:
- static const char* getName() { return "RPCFoo"; }
-};
+namespace llvm {
+namespace orc {
+namespace rpc {
-template <>
-class llvm::orc::rpc::SerializationTraits<QueueChannel, RPCFoo, RPCFoo> {
-public:
- static Error serialize(QueueChannel&, const RPCFoo&) {
- return Error::success();
- }
+ template <>
+ class RPCTypeName<RPCFoo> {
+ public:
+ static const char* getName() { return "RPCFoo"; }
+ };
- static Error deserialize(QueueChannel&, RPCFoo&) {
- return Error::success();
- }
-};
+ template <>
+ class SerializationTraits<QueueChannel, RPCFoo, RPCFoo> {
+ public:
+ static Error serialize(QueueChannel&, const RPCFoo&) {
+ return Error::success();
+ }
+
+ static Error deserialize(QueueChannel&, RPCFoo&) {
+ return Error::success();
+ }
+ };
+
+} // end namespace rpc
+} // end namespace orc
+} // end namespace llvm
class RPCBar {};
-template <>
-class llvm::orc::rpc::SerializationTraits<QueueChannel, RPCFoo, RPCBar> {
-public:
- static Error serialize(QueueChannel&, const RPCBar&) {
- return Error::success();
- }
+namespace llvm {
+namespace orc {
+namespace rpc {
- static Error deserialize(QueueChannel&, RPCBar&) {
- return Error::success();
- }
+ template <>
+ class SerializationTraits<QueueChannel, RPCFoo, RPCBar> {
+ public:
+ static Error serialize(QueueChannel&, const RPCBar&) {
+ return Error::success();
+ }
+
+ static Error deserialize(QueueChannel&, RPCBar&) {
+ return Error::success();
+ }
};
+} // end namespace rpc
+} // end namespace orc
+} // end namespace llvm
+
class DummyRPCAPI {
public:
OpenPOWER on IntegriCloud