llvm.org GIT mirror llvm / b358f02
Make SmallSet<whatever*, N> faster by transparently implementing it with SmallPtrSet. Some clients will need to use SmallPtrSet directly though if they need to iterate over the set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33584 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1414 #define LLVM_ADT_SMALLSET_H
1515
1616 #include "llvm/ADT/SmallVector.h"
17 #include "llvm/ADT/SmallPtrSet.h"
1718 #include
1819
1920 namespace llvm {
100101 }
101102 };
102103
104 /// If this set is of pointer values, transparently switch over to using
105 /// SmallPtrSet for performance.
106 template
107 class SmallSet : public SmallPtrSet {};
103108
104109 } // end namespace llvm
105110