summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FoldingSet.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-16 14:53:42 +0000
committerDan Gohman <gohman@apple.com>2010-08-16 14:53:42 +0000
commit27c98e6303c613873af6c4e192c8f36118e42bfa (patch)
tree680302250302c40a1f1b16844eadef43f1ace6a1 /llvm/lib/Support/FoldingSet.cpp
parent1cab72a44f8481c9495cac2bf6855478c3cfef28 (diff)
downloadbcm5719-llvm-27c98e6303c613873af6c4e192c8f36118e42bfa.tar.gz
bcm5719-llvm-27c98e6303c613873af6c4e192c8f36118e42bfa.zip
Reverse the order of GetNodeProfile's arguments, for consistency
with FoldingSetTrait::Profile. llvm-svn: 111127
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
-rw-r--r--llvm/lib/Support/FoldingSet.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Support/FoldingSet.cpp b/llvm/lib/Support/FoldingSet.cpp
index b8dca334da4..c1b6511a930 100644
--- a/llvm/lib/Support/FoldingSet.cpp
+++ b/llvm/lib/Support/FoldingSet.cpp
@@ -229,7 +229,7 @@ void FoldingSetImpl::GrowHashTable() {
NodeInBucket->SetNextInBucket(0);
// Insert the node into the new bucket, after recomputing the hash.
- GetNodeProfile(ID, NodeInBucket);
+ GetNodeProfile(NodeInBucket, ID);
InsertNode(NodeInBucket, GetBucketFor(ID, Buckets, NumBuckets));
ID.clear();
}
@@ -252,7 +252,7 @@ FoldingSetImpl::Node
FoldingSetNodeID OtherID;
while (Node *NodeInBucket = GetNextPtr(Probe)) {
- GetNodeProfile(OtherID, NodeInBucket);
+ GetNodeProfile(NodeInBucket, OtherID);
if (OtherID == ID)
return NodeInBucket;
@@ -274,7 +274,7 @@ void FoldingSetImpl::InsertNode(Node *N, void *InsertPos) {
if (NumNodes+1 > NumBuckets*2) {
GrowHashTable();
FoldingSetNodeID ID;
- GetNodeProfile(ID, N);
+ GetNodeProfile(N, ID);
InsertPos = GetBucketFor(ID, Buckets, NumBuckets);
}
@@ -341,7 +341,7 @@ bool FoldingSetImpl::RemoveNode(Node *N) {
/// instead.
FoldingSetImpl::Node *FoldingSetImpl::GetOrInsertNode(FoldingSetImpl::Node *N) {
FoldingSetNodeID ID;
- GetNodeProfile(ID, N);
+ GetNodeProfile(N, ID);
void *IP;
if (Node *E = FindNodeOrInsertPos(ID, IP))
return E;
OpenPOWER on IntegriCloud