Define ContextualFoldingSet, which stores a context parameter to pass down to
authorJohn McCall <rjmccall@apple.com>
Fri, 11 Jun 2010 11:06:44 +0000 (11:06 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 11 Jun 2010 11:06:44 +0000 (11:06 +0000)
commitedce58fbd94fd8f274b34729c182fc156a2bda37
treeb0a9c64ca69fd6163f552e447ad70fe6f0e45c90
parentd6645dd4fe788fb4a1b6a895142d72fab13070ee
Define ContextualFoldingSet, which stores a context parameter to pass down to
the Profile method.  Currently this only works with the default FoldingSetTraits
implementation.

The point of this is to allow nodes to not store context values which are only
used during profiling.  A better solution would thread this value through the
folding algorithms, but then those would need to be (1) templated and
(2) non-opaque.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105819 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/FoldingSet.h