X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FADT%2FFoldingSet.h;h=4c93711394e4ce900ec3a8c51866fa8fac172e25;hb=69e3bd10ecc36f7551b822a09d311fec08254cc0;hp=16c811852a8d4f56709318966b7771cfc51d25a0;hpb=28088d3c049017a131aa7b07201c6e19c0227cef;p=oota-llvm.git diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 16c811852a8..4c93711394e 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -449,6 +449,12 @@ template struct FoldingSetTrait { } }; +template struct FoldingSetTrait { + static inline void Profile(const T* X, FoldingSetNodeID& ID) { + ID.AddPointer(X); + } +}; + } // End of namespace llvm.