From 3f2dcb1ca8bd2d5d3ccc5c80f4ab06f949d88a89 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 25 Jun 2008 17:24:26 +0000 Subject: [PATCH] Add Profile method to QualType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52735 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Type.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.50.1