summaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-10 07:06:46 +0000
committerChris Lattner <sabre@nondot.org>2007-02-10 07:06:46 +0000
commitf98aad66faf674244a9f3816b4f2106a1318a804 (patch)
tree90b6ee8d297e030b7a6d64a04cf5d788e6f682a0 /lib/Bytecode
parent362df0d4b7c2a531d37e50ce657a73eb4e30e4cf (diff)
Switch typemap over to DenseMap. No significant speedup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h
index 8bb87dd434a..a7722e893f0 100644
--- a/lib/Bytecode/Writer/SlotCalculator.h
+++ b/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