diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-25 17:55:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 17:55:37 +0000 |
commit | f8820c353bc75eba9ed900b005fd7d91dd40f839 (patch) | |
tree | 59f4625efaa12261cae3758435c91ff53c24543c | |
parent | 601d71595937e9b68402d51411dfc355d1328c31 (diff) |
Add typenames
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3092 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/InstForest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h index f48466b5de..6a05e2a762 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<Payload> *getInstNode(Instruction *Inst) { - std::map<Instruction*, InstTreeNode<Payload> *>::iterator I = + typename std::map<Instruction*, InstTreeNode<Payload> *>::iterator I = InstMap.find(Inst); if (I != InstMap.end()) return I->second; return 0; } inline const InstTreeNode<Payload> *getInstNode(const Instruction *Inst)const{ - std::map<Instruction*, InstTreeNode<Payload>*>::const_iterator I = + typename std::map<Instruction*, InstTreeNode<Payload>*>::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; } }; |