diff options
Diffstat (limited to 'lib/Bytecode/Writer/SlotCalculator.h')
-rw-r--r-- | lib/Bytecode/Writer/SlotCalculator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h index a7722e893f..d457c6c8a7 100644 --- a/lib/Bytecode/Writer/SlotCalculator.h +++ b/lib/Bytecode/Writer/SlotCalculator.h @@ -21,6 +21,7 @@ #define LLVM_ANALYSIS_SLOTCALCULATOR_H #include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SmallVector.h" #include <vector> namespace llvm { @@ -44,9 +45,10 @@ struct ModuleLevelDenseMapKeyInfo { class SlotCalculator { const Module *TheModule; - +public: typedef std::vector<const Type*> TypeList; - typedef std::vector<const Value*> TypePlane; + typedef SmallVector<const Value*, 16> TypePlane; +private: std::vector<TypePlane> Table; TypeList Types; typedef DenseMap<const Value*, unsigned> NodeMapType; |