[llvm-commits] CVS: llvm/include/llvm/ADT/PostOrderIterator.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Sep 28 07:42:55 PDT 2004
Changes in directory llvm/include/llvm/ADT:
PostOrderIterator.h updated: 1.15 -> 1.16
---
Log message:
Add includes and use std:: for standard library calls to make code
compile on windows. This patch was contributed by Paolo Invernizzi.
---
Diffs of the changes: (+2 -2)
Index: llvm/include/llvm/ADT/PostOrderIterator.h
diff -u llvm/include/llvm/ADT/PostOrderIterator.h:1.15 llvm/include/llvm/ADT/PostOrderIterator.h:1.16
--- llvm/include/llvm/ADT/PostOrderIterator.h:1.15 Wed Sep 1 17:55:34 2004
+++ llvm/include/llvm/ADT/PostOrderIterator.h Tue Sep 28 09:42:44 2004
@@ -39,14 +39,14 @@
NodeType *BB = *VisitStack.top().second++;
if (!Visited.count(BB)) { // If the block is not visited...
Visited.insert(BB);
- VisitStack.push(make_pair(BB, GT::child_begin(BB)));
+ VisitStack.push(std::make_pair(BB, GT::child_begin(BB)));
}
}
}
inline po_iterator(NodeType *BB) {
Visited.insert(BB);
- VisitStack.push(make_pair(BB, GT::child_begin(BB)));
+ VisitStack.push(std::make_pair(BB, GT::child_begin(BB)));
traverseChild();
}
inline po_iterator() { /* End is when stack is empty */ }
More information about the llvm-commits
mailing list