Added static inline method "ReadVal" to QualType for more succinct

deserialization code of objects containing QualTypes.

llvm-svn: 43792
This commit is contained in:
Ted Kremenek 2007-11-07 00:13:45 +00:00
parent e8a3016ac7
commit abcfe90802
1 changed files with 6 additions and 0 deletions

View File

@ -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;