[llvm-commits] [llvm] r46190 - /llvm/trunk/include/llvm/ADT/ImmutableSet.h

Ted Kremenek kremenek at apple.com
Fri Jan 18 20:51:55 PST 2008


Author: kremenek
Date: Fri Jan 18 22:51:55 2008
New Revision: 46190

URL: http://llvm.org/viewvc/llvm-project?rev=46190&view=rev
Log:
Modified ImmutableSet/ImmutableMap to use FoldingSet profiling using
FoldingSetTrait instead of directly calling a 'Profile' method.

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

Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableSet.h?rev=46190&r1=46189&r2=46190&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableSet.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableSet.h Fri Jan 18 22:51:55 2008
@@ -717,8 +717,8 @@
   typedef const T& value_type_ref;
   
   static inline void Profile(FoldingSetNodeID& ID, value_type_ref X) {
-    X.Profile(ID);
-  }  
+    FoldingSetTrait<T>::Profile(X,ID);
+  }
 };
 
 /// Profile traits for integers.





More information about the llvm-commits mailing list