diff --git a/include/llvm/ADT/SmallSet.h b/include/llvm/ADT/SmallSet.h index d78813c6151..64eb5814ab9 100644 --- a/include/llvm/ADT/SmallSet.h +++ b/include/llvm/ADT/SmallSet.h @@ -15,6 +15,7 @@ #define LLVM_ADT_SMALLSET_H #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/SmallPtrSet.h" #include namespace llvm { @@ -101,6 +102,10 @@ private: } }; +/// If this set is of pointer values, transparently switch over to using +/// SmallPtrSet for performance. +template +class SmallSet : public SmallPtrSet {}; } // end namespace llvm