mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 20:57:15 +00:00
[Orc][RPC] Actually specialize SerializationTraits and RPCTypeName in the right
namespace. r290226 was a think-o - just qualifying the name doesn't count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ed0bfd718
commit
1a6ed847ac
@ -60,38 +60,54 @@ private:
|
|||||||
|
|
||||||
class RPCFoo {};
|
class RPCFoo {};
|
||||||
|
|
||||||
template <>
|
namespace llvm {
|
||||||
class llvm::orc::rpc::RPCTypeName<RPCFoo> {
|
namespace orc {
|
||||||
public:
|
namespace rpc {
|
||||||
static const char* getName() { return "RPCFoo"; }
|
|
||||||
};
|
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
class llvm::orc::rpc::SerializationTraits<QueueChannel, RPCFoo, RPCFoo> {
|
class RPCTypeName<RPCFoo> {
|
||||||
public:
|
public:
|
||||||
static Error serialize(QueueChannel&, const RPCFoo&) {
|
static const char* getName() { return "RPCFoo"; }
|
||||||
return Error::success();
|
};
|
||||||
}
|
|
||||||
|
|
||||||
static Error deserialize(QueueChannel&, RPCFoo&) {
|
template <>
|
||||||
return Error::success();
|
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 {};
|
class RPCBar {};
|
||||||
|
|
||||||
template <>
|
namespace llvm {
|
||||||
class llvm::orc::rpc::SerializationTraits<QueueChannel, RPCFoo, RPCBar> {
|
namespace orc {
|
||||||
public:
|
namespace rpc {
|
||||||
static Error serialize(QueueChannel&, const RPCBar&) {
|
|
||||||
return Error::success();
|
|
||||||
}
|
|
||||||
|
|
||||||
static Error deserialize(QueueChannel&, RPCBar&) {
|
template <>
|
||||||
return Error::success();
|
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 {
|
class DummyRPCAPI {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user