aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-07 00:13:45 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-07 00:13:45 +0000
commitf623c85c80f875be9d20caf4a0c15092e42e0b9e (patch)
tree05e44825c37350355ebd1adb193eeb3442689933
parent957cf65bf32fe7c84886a2296d0b4ede40029850 (diff)
Added static inline method "ReadVal" to QualType for more succinct
deserialization code of objects containing QualTypes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43792 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index 6d7a6d7ce7..6df13be7b0 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -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;