mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
[LCG] Normalize the post-order SCC iterator to just iterate over the SCC
values rather than having pointers in weird places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207053 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -248,8 +248,7 @@ public:
|
||||
/// always visits SCCs for a callee prior to visiting the SCC for a caller
|
||||
/// (when they are in different SCCs).
|
||||
class postorder_scc_iterator
|
||||
: public std::iterator<std::forward_iterator_tag, SCC *, ptrdiff_t, SCC *,
|
||||
SCC *> {
|
||||
: public std::iterator<std::forward_iterator_tag, SCC> {
|
||||
friend class LazyCallGraph;
|
||||
friend class LazyCallGraph::Node;
|
||||
|
||||
@ -276,8 +275,8 @@ public:
|
||||
return !operator==(Arg);
|
||||
}
|
||||
|
||||
reference operator*() const { return C; }
|
||||
pointer operator->() const { return operator*(); }
|
||||
reference operator*() const { return *C; }
|
||||
pointer operator->() const { return &operator*(); }
|
||||
|
||||
postorder_scc_iterator &operator++() {
|
||||
C = G->getNextSCCInPostOrder();
|
||||
|
Reference in New Issue
Block a user