Changed profiling method for ImmutableMap to once again just use its
authorTed Kremenek <kremenek@apple.com>
Tue, 5 Feb 2008 17:30:43 +0000 (17:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 5 Feb 2008 17:30:43 +0000 (17:30 +0000)
commit95da16e2881a662401220cd52a4267b7cd7f5860
tree4571dbedbca8a9941d5b0f7889bf453bdde65c18
parent5a804e3e21f8cfeb8b1a65aae0ef8d0e063a5256
Changed profiling method for ImmutableMap to once again just use its
unique ImutAVLTree* for profiling.

Modified ImutAVLTree:
 (1) changed ComputeHash() to ComputeDigest() and
 (2) changed Profile() to use the computed digest and
 (3) modified insertion of IMutAVLTree into the FoldingSet owned by
     the ImutAVLTreeFactory object to use profiling instead of computing
     a direct hash.  This fixes a bug where our abuse of the FoldingSet would
     not work when the FoldingSet was resized.

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