summaryrefslogtreecommitdiffstats
path: root/include
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
commit6616f7e2f147c2320973993cbfb241a82262b764 (patch)
tree8f13bc3daa9eda59f0c97da2be05b72c447aa6ad /include
parent83fb63d5b3669aec8925af23907ca2b404a51f74 (diff)
downloadexternal_llvm-6616f7e2f147c2320973993cbfb241a82262b764.zip
external_llvm-6616f7e2f147c2320973993cbfb241a82262b764.tar.gz
external_llvm-6616f7e2f147c2320973993cbfb241a82262b764.tar.bz2
Reverse the order of GetNodeProfile's arguments, for consistency
with FoldingSetTrait::Profile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/FoldingSet.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h
index 72f9213..0a7401d 100644
--- a/include/llvm/ADT/FoldingSet.h
+++ b/include/llvm/ADT/FoldingSet.h
@@ -190,7 +190,7 @@ protected:
/// GetNodeProfile - Instantiations of the FoldingSet template implement
/// this function to gather data bits for the given node.
- virtual void GetNodeProfile(FoldingSetNodeID &ID, Node *N) const = 0;
+ virtual void GetNodeProfile(Node *N, FoldingSetNodeID &ID) const = 0;
};
//===----------------------------------------------------------------------===//
@@ -290,7 +290,7 @@ template<class T> class FoldingSet : public FoldingSetImpl {
private:
/// GetNodeProfile - Each instantiatation of the FoldingSet needs to provide a
/// way to convert nodes into a unique specifier.
- virtual void GetNodeProfile(FoldingSetNodeID &ID, Node *N) const {
+ virtual void GetNodeProfile(Node *N, FoldingSetNodeID &ID) const {
T *TN = static_cast<T *>(N);
FoldingSetTrait<T>::Profile(*TN,ID);
}
@@ -354,8 +354,8 @@ private:
/// GetNodeProfile - Each instantiatation of the FoldingSet needs to provide a
/// way to convert nodes into a unique specifier.
- virtual void GetNodeProfile(FoldingSetNodeID &ID,
- FoldingSetImpl::Node *N) const {
+ virtual void GetNodeProfile(FoldingSetImpl::Node *N,
+ FoldingSetNodeID &ID) const {
T *TN = static_cast<T *>(N);
// We must use explicit template arguments in case Ctx is a