From: Ted Kremenek Date: Wed, 25 Jun 2008 17:24:26 +0000 (+0000) Subject: Add Profile method to QualType. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f2dcb1ca8bd2d5d3ccc5c80f4ab06f949d88a89;p=clang Add Profile method to QualType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52735 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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