From cc3f31aec5d3532e55df5c1392344b73067ed526 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Sun, 15 Jun 2014 14:42:25 +0000 Subject: [PATCH] Add specialization of FoldingSetTrait for std::pair. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210990 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/FoldingSet.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 9b7ee8520d7..14c5933d388 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -794,6 +794,14 @@ template struct FoldingSetTrait { ID.AddPointer(X); } }; +template +struct FoldingSetTrait> { + static inline void Profile(const std::pair &P, + llvm::FoldingSetNodeID &ID) { + ID.Add(P.first); + ID.Add(P.second); + } +}; } // End of namespace llvm. #endif