[cfe-commits] r52735 - /cfe/trunk/include/clang/AST/Type.h

Ted Kremenek kremenek at apple.com
Wed Jun 25 10:24:29 PDT 2008


Author: kremenek
Date: Wed Jun 25 12:24:26 2008
New Revision: 52735

URL: http://llvm.org/viewvc/llvm-project?rev=52735&view=rev
Log:
Add Profile method to QualType.

Modified:
    cfe/trunk/include/clang/AST/Type.h

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=52735&r1=52734&r2=52735&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Wed Jun 25 12:24:26 2008
@@ -160,6 +160,10 @@
   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





More information about the cfe-commits mailing list