From: Ted Kremenek Date: Sat, 19 Jan 2008 04:51:55 +0000 (+0000) Subject: Modified ImmutableSet/ImmutableMap to use FoldingSet profiling using X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3cf8bec783809269a5dbb81d6d1693ee18fcb37c;p=oota-llvm.git Modified ImmutableSet/ImmutableMap to use FoldingSet profiling using FoldingSetTrait instead of directly calling a 'Profile' method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46190 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index 7999bb59672..e77deeb51eb 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/include/llvm/ADT/ImmutableSet.h @@ -717,8 +717,8 @@ struct ImutProfileInfo { typedef const T& value_type_ref; static inline void Profile(FoldingSetNodeID& ID, value_type_ref X) { - X.Profile(ID); - } + FoldingSetTrait::Profile(X,ID); + } }; /// Profile traits for integers.