[llvm-commits] [llvm] r59362 - /llvm/trunk/include/llvm/ADT/ImmutableList.h

Zhongxing Xu xuzhongxing at gmail.com
Sat Nov 15 01:26:02 PST 2008


Author: zhongxingxu
Date: Sat Nov 15 03:26:02 2008
New Revision: 59362

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

Modified:
    llvm/trunk/include/llvm/ADT/ImmutableList.h

Modified: llvm/trunk/include/llvm/ADT/ImmutableList.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableList.h?rev=59362&r1=59361&r2=59362&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableList.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableList.h Sat Nov 15 03:26:02 2008
@@ -123,6 +123,10 @@
   ImmutableList getTail() {
     return X ? X->getTail() : 0;
   }  
+
+  void Profile(FoldingSetNodeID& ID) const {
+    ID.AddPointer(X);
+  }
 };
   
 template <typename T>





More information about the llvm-commits mailing list