From: Chris Lattner Date: Thu, 25 Jul 2002 17:55:37 +0000 (+0000) Subject: Add typenames X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f8820c353bc75eba9ed900b005fd7d91dd40f839;p=oota-llvm.git Add typenames git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3092 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h index f48466b5de7..6a05e2a7622 100644 --- a/include/llvm/Analysis/InstForest.h +++ b/include/llvm/Analysis/InstForest.h @@ -182,13 +182,13 @@ public: // the parent pointer can be used to find the root of the tree. // inline InstTreeNode *getInstNode(Instruction *Inst) { - std::map *>::iterator I = + typename std::map *>::iterator I = InstMap.find(Inst); if (I != InstMap.end()) return I->second; return 0; } inline const InstTreeNode *getInstNode(const Instruction *Inst)const{ - std::map*>::const_iterator I = + typename std::map*>::const_iterator I = InstMap.find(Inst); if (I != InstMap.end()) return I->second; return 0; @@ -196,7 +196,7 @@ public: // print - Called by operator<< below... void print(std::ostream &out) const { - for (const_iterator I = begin(), E = end(); I != E; ++I) + for (typename const_iterator I = begin(), E = end(); I != E; ++I) out << *I; } };