From: Manuel Klimek Date: Sun, 15 Jun 2014 14:42:25 +0000 (+0000) Subject: Add specialization of FoldingSetTrait for std::pair. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cc3f31aec5d3532e55df5c1392344b73067ed526;p=oota-llvm.git Add specialization of FoldingSetTrait for std::pair. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210990 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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