use typedefs where appropriate
authorChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 06:42:23 +0000 (06:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 06:42:23 +0000 (06:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34136 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/SlotCalculator.cpp
lib/Bytecode/Writer/SlotCalculator.h

index 5ad6564f81820ca80203671848fdeedf6c1a4588..6dbaba5dec42eea2390c7f8bb8b21803207fa8ed 100644 (file)
@@ -256,7 +256,7 @@ void SlotCalculator::CreateSlotIfNeeded(const Value *V) {
 
 
 unsigned SlotCalculator::getOrCreateTypeSlot(const Type *Ty) {
-  std::map<const Type*, unsigned>::iterator TyIt = TypeMap.find(Ty);
+  TypeMapType::iterator TyIt = TypeMap.find(Ty);
   if (TyIt != TypeMap.end()) return TyIt->second;
 
   // Insert into TypeMap.
index e20bc62a24f6945b56fbb9a451e87b6906b1d6f2..1dc0cc37bd37138e2d40fd64d967db9850dfe115 100644 (file)
@@ -75,13 +75,13 @@ public:
   /// plane.  This returns < 0 on error!
   ///
   unsigned getSlot(const Value *V) const {
-    std::map<const Value*, unsigned>::const_iterator I = NodeMap.find(V);
+    NodeMapType::const_iterator I = NodeMap.find(V);
     assert(I != NodeMap.end() && "Value not in slotcalculator!");
     return I->second;
   }
   
   unsigned getTypeSlot(const Type* T) const {
-    std::map<const Type*, unsigned>::const_iterator I = TypeMap.find(T);
+    TypeMapType::const_iterator I = TypeMap.find(T);
     assert(I != TypeMap.end() && "Type not in slotcalc!");
     return I->second;
   }