aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-06-25 17:24:26 +0000
committerTed Kremenek <kremenek@apple.com>2008-06-25 17:24:26 +0000
commit3f2dcb1ca8bd2d5d3ccc5c80f4ab06f949d88a89 (patch)
treeb9417eee4544b99e281597abe7322a1593ab3318
parent74de8d9486a35a1c2cf4c951057f7f8edd555077 (diff)
Add Profile method to QualType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52735 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index 5cefb7843f..2e80f443f9 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -160,6 +160,10 @@ public:
void getAsStringInternal(std::string &Str) const;
void dump(const char *s = 0) const;
+
+ void Profile(llvm::FoldingSetNodeID &ID) const {
+ ID.AddPointer(getAsOpaquePtr());
+ }
//private:
/// getCanonicalType - Return the canonical version of this type, with the