[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.h

Chris Lattner sabre at nondot.org
Fri Feb 9 23:07:02 PST 2007



Changes in directory llvm/lib/Bytecode/Writer:

SlotCalculator.h updated: 1.48 -> 1.49
---
Log message:

Switch typemap over to DenseMap.  No significant speedup.


---
Diffs of the changes:  (+1 -2)

 SlotCalculator.h |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Bytecode/Writer/SlotCalculator.h
diff -u llvm/lib/Bytecode/Writer/SlotCalculator.h:1.48 llvm/lib/Bytecode/Writer/SlotCalculator.h:1.49
--- llvm/lib/Bytecode/Writer/SlotCalculator.h:1.48	Sat Feb 10 01:01:05 2007
+++ llvm/lib/Bytecode/Writer/SlotCalculator.h	Sat Feb 10 01:06:46 2007
@@ -22,7 +22,6 @@
 
 #include "llvm/ADT/DenseMap.h"
 #include <vector>
-#include <map>
 
 namespace llvm {
 
@@ -53,7 +52,7 @@
   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






More information about the llvm-commits mailing list