forked from OSchip/llvm-project
Added static inline method "ReadVal" to QualType for more succinct
deserialization code of objects containing QualTypes. llvm-svn: 43792
This commit is contained in:
parent
e8a3016ac7
commit
abcfe90802
|
@ -167,6 +167,12 @@ public:
|
|||
/// exists, in place, within its containing object.
|
||||
void Read(llvm::Deserializer& D);
|
||||
|
||||
static inline QualType ReadVal(llvm::Deserializer& D) {
|
||||
QualType Q;
|
||||
Q.Read(D);
|
||||
return Q;
|
||||
}
|
||||
|
||||
/// EmitOwned - Serialize a QualType that owns the underlying Type*.
|
||||
void EmitOwned(llvm::Serializer& S) const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue