mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
[LCG] Switch the SCC's parent iterators to be value iterators rather
than pointer iterators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207086 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0698b2b6cc
commit
63ed439ab5
@ -41,6 +41,7 @@
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/iterator.h"
|
||||
#include "llvm/ADT/iterator_range.h"
|
||||
#include "llvm/IR/BasicBlock.h"
|
||||
#include "llvm/IR/Function.h"
|
||||
@ -228,7 +229,7 @@ public:
|
||||
|
||||
public:
|
||||
typedef SmallVectorImpl<Node *>::const_iterator iterator;
|
||||
typedef SmallSetVector<SCC *, 1>::const_iterator parent_iterator;
|
||||
typedef pointee_iterator<SmallSetVector<SCC *, 1>::const_iterator> parent_iterator;
|
||||
|
||||
iterator begin() const { return Nodes.begin(); }
|
||||
iterator end() const { return Nodes.end(); }
|
||||
|
@ -329,7 +329,7 @@ TEST(LazyCallGraphTest, InterSCCEdgeRemoval) {
|
||||
|
||||
EXPECT_EQ("b", A.begin()->getFunction().getName());
|
||||
EXPECT_EQ(B.end(), B.begin());
|
||||
EXPECT_EQ(&AC, *BC.parent_begin());
|
||||
EXPECT_EQ(&AC, &*BC.parent_begin());
|
||||
|
||||
CG.removeEdge(A, lookupFunction(*M, "b"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user