From dc45f0fb40fd95388622022a8f22cb2d904a6d9a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 10 Feb 2007 06:42:23 +0000 Subject: [PATCH] use typedefs where appropriate git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34136 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/SlotCalculator.cpp | 2 +- lib/Bytecode/Writer/SlotCalculator.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 5ad6564f818..6dbaba5dec4 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -256,7 +256,7 @@ void SlotCalculator::CreateSlotIfNeeded(const Value *V) { unsigned SlotCalculator::getOrCreateTypeSlot(const Type *Ty) { - std::map::iterator TyIt = TypeMap.find(Ty); + TypeMapType::iterator TyIt = TypeMap.find(Ty); if (TyIt != TypeMap.end()) return TyIt->second; // Insert into TypeMap. diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h index e20bc62a24f..1dc0cc37bd3 100644 --- a/lib/Bytecode/Writer/SlotCalculator.h +++ b/lib/Bytecode/Writer/SlotCalculator.h @@ -75,13 +75,13 @@ public: /// plane. This returns < 0 on error! /// unsigned getSlot(const Value *V) const { - std::map::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_iterator I = TypeMap.find(T); + TypeMapType::const_iterator I = TypeMap.find(T); assert(I != TypeMap.end() && "Type not in slotcalc!"); return I->second; } -- 2.34.1