mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
getNodes() is gone, use node_begin/end instead
Rename stats from dsnode -> dsa Add a new stat git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -114,11 +114,10 @@ bool DSGC::runOnFunction(Function &F) {
|
||||
void DSGC::verify(const DSGraph &G) {
|
||||
// Loop over all of the nodes, checking to see if any are collapsed...
|
||||
if (AbortIfAnyCollapsed) {
|
||||
const std::vector<DSNode*> &Nodes = G.getNodes();
|
||||
for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
|
||||
if (Nodes[i]->isNodeCompletelyFolded()) {
|
||||
for (DSGraph::node_iterator I = G.node_begin(), E = G.node_end(); I!=E; ++I)
|
||||
if ((*I)->isNodeCompletelyFolded()) {
|
||||
std::cerr << "Node is collapsed: ";
|
||||
Nodes[i]->print(std::cerr, &G);
|
||||
(*I)->print(std::cerr, &G);
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user