Add Profile method to ImmutableList.
authorZhongxing Xu <xuzhongxing@gmail.com>
Sat, 15 Nov 2008 09:26:02 +0000 (09:26 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sat, 15 Nov 2008 09:26:02 +0000 (09:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59362 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ImmutableList.h

index baf86daa360ceb67cc91b4dc842160f6a9af05fe..21b07e742da88b02959ce64d1ac309e6caa2ae66 100644 (file)
@@ -123,6 +123,10 @@ public:
   ImmutableList getTail() {
     return X ? X->getTail() : 0;
   }  
+
+  void Profile(FoldingSetNodeID& ID) const {
+    ID.AddPointer(X);
+  }
 };
   
 template <typename T>