aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/ImmutableSet.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-19 04:51:55 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-19 04:51:55 +0000
commit3cf8bec783809269a5dbb81d6d1693ee18fcb37c (patch)
tree1d8271f0fba37e9a0eb373934601f38cbae7b1b9 /include/llvm/ADT/ImmutableSet.h
parent4048a082847cea72431aa8235f54941ed064913b (diff)
downloadexternal_llvm-3cf8bec783809269a5dbb81d6d1693ee18fcb37c.zip
external_llvm-3cf8bec783809269a5dbb81d6d1693ee18fcb37c.tar.gz
external_llvm-3cf8bec783809269a5dbb81d6d1693ee18fcb37c.tar.bz2
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
Diffstat (limited to 'include/llvm/ADT/ImmutableSet.h')
-rw-r--r--include/llvm/ADT/ImmutableSet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h
index 7999bb5..e77deeb 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<T>::Profile(X,ID);
+ }
};
/// Profile traits for integers.