use typedefs where appropriate

llvm-svn: 34136
This commit is contained in:
Chris Lattner 2007-02-10 06:42:23 +00:00
parent cdde9ce28b
commit 733a841633
2 changed files with 3 additions and 3 deletions

View 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.

View 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;
}