Switch typemap over to DenseMap. No significant speedup.
authorChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 07:06:46 +0000 (07:06 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 07:06:46 +0000 (07:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34139 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/SlotCalculator.h

index 8bb87dd434aa62268f1289ba69f8241d98aa5eab..a7722e893f0faa2c95cfc8ad04119a65fd357f10 100644 (file)
@@ -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