llvm.org GIT mirror llvm / ce770dd
IndexedMap: Default to SmallVector<T, 0> This looks ridiculous but SmallVector's realloc tricks really help with large vectors of PODs, such as our virtreg IndexedMap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230866 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 5 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2020 #define LLVM_ADT_INDEXEDMAP_H
2121
2222 #include "llvm/ADT/STLExtras.h"
23 #include "llvm/ADT/SmallVector.h"
2324 #include
2425 #include
25 #include
2626
2727 namespace llvm {
2828
2929 template >
3030 class IndexedMap {
3131 typedef typename ToIndexT::argument_type IndexT;
32 typedef std::vector> StorageT;
32 typedef SmallVector> StorageT;
3333 StorageT storage_;
3434 T nullVal_;
3535 ToIndexT toIndex_;