diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-10 07:06:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-10 07:06:46 +0000 |
commit | 05aeb105dfa3b9bd9726413c78abae002a96237c (patch) | |
tree | 196cf3bc4ad48b46488a74766205823a58e2ec0f /llvm/lib/Bytecode/Writer/SlotCalculator.h | |
parent | 9082be2593b1805adc6bc75350c69be0b9585d5b (diff) | |
download | bcm5719-llvm-05aeb105dfa3b9bd9726413c78abae002a96237c.tar.gz bcm5719-llvm-05aeb105dfa3b9bd9726413c78abae002a96237c.zip |
Switch typemap over to DenseMap. No significant speedup.
llvm-svn: 34139
Diffstat (limited to 'llvm/lib/Bytecode/Writer/SlotCalculator.h')
-rw-r--r-- | llvm/lib/Bytecode/Writer/SlotCalculator.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.h b/llvm/lib/Bytecode/Writer/SlotCalculator.h index 8bb87dd434a..a7722e893f0 100644 --- a/llvm/lib/Bytecode/Writer/SlotCalculator.h +++ b/llvm/lib/Bytecode/Writer/SlotCalculator.h @@ -22,7 +22,6 @@ #include "llvm/ADT/DenseMap.h" #include <vector> -#include <map> namespace llvm { @@ -53,7 +52,7 @@ class SlotCalculator { typedef DenseMap<const Value*, unsigned> NodeMapType; NodeMapType NodeMap; - typedef std::map<const Type*, unsigned> TypeMapType; + typedef DenseMap<const Type*, unsigned> TypeMapType; TypeMapType TypeMap; /// ConstantStrings - If we are indexing for a bytecode file, this keeps track |