]> granicus.if.org Git - clang/commitdiff
Add Profile method to QualType.
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Jun 2008 17:24:26 +0000 (17:24 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Jun 2008 17:24:26 +0000 (17:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52735 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index 5cefb7843fbf586f357703e7943d6b84f42d5e71..2e80f443f9b8a6afe0e5f5affd11ca36fc8404e7 100644 (file)
@@ -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