[llvm-commits] CVS: llvm/include/llvm/Support/CFG.h
Chris Lattner
lattner at cs.uiuc.edu
Fri May 21 13:39:02 PDT 2004
Changes in directory llvm/include/llvm/Support:
CFG.h updated: 1.20 -> 1.21
---
Log message:
Starting an identifier with an _ is not legal C/C++ code.
---
Diffs of the changes: (+7 -7)
Index: llvm/include/llvm/Support/CFG.h
diff -u llvm/include/llvm/Support/CFG.h:1.20 llvm/include/llvm/Support/CFG.h:1.21
--- llvm/include/llvm/Support/CFG.h:1.20 Sat May 1 16:05:34 2004
+++ llvm/include/llvm/Support/CFG.h Fri May 21 13:37:13 2004
@@ -90,20 +90,20 @@
// BasicBlock succ_iterator definition
//===--------------------------------------------------------------------===//
-template <class _Term, class _BB> // Successor Iterator
-class SuccIterator : public bidirectional_iterator<_BB, ptrdiff_t> {
- const _Term Term;
+template <class Term_, class BB_> // Successor Iterator
+class SuccIterator : public bidirectional_iterator<BB_, ptrdiff_t> {
+ const Term_ Term;
unsigned idx;
- typedef bidirectional_iterator<_BB, ptrdiff_t> super;
+ typedef bidirectional_iterator<BB_, ptrdiff_t> super;
public:
- typedef SuccIterator<_Term, _BB> _Self;
+ typedef SuccIterator<Term_, BB_> _Self;
typedef typename super::pointer pointer;
// TODO: This can be random access iterator, need operator+ and stuff tho
- inline SuccIterator(_Term T) : Term(T), idx(0) { // begin iterator
+ inline SuccIterator(Term_ T) : Term(T), idx(0) { // begin iterator
assert(T && "getTerminator returned null!");
}
- inline SuccIterator(_Term T, bool) // end iterator
+ inline SuccIterator(Term_ T, bool) // end iterator
: Term(T), idx(Term->getNumSuccessors()) {
assert(T && "getTerminator returned null!");
}
More information about the llvm-commits
mailing list