diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-07 23:58:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-07 23:58:05 +0000 |
commit | ce74c2f50b4e621cbd89bba25579bde0547b8b59 (patch) | |
tree | f2bd58f0f0ea091cf5d2871917e1490202eea784 /llvm/lib/Analysis/DataStructure/GraphChecker.cpp | |
parent | 06834e6d7bc1699ba6487e091b78e4ce7a6071cd (diff) | |
download | llvm-ce74c2f50b4e621cbd89bba25579bde0547b8b59.zip llvm-ce74c2f50b4e621cbd89bba25579bde0547b8b59.tar.gz llvm-ce74c2f50b4e621cbd89bba25579bde0547b8b59.tar.bz2 |
getNodes() is gone, use node_begin/end instead
Rename stats from dsnode -> dsa
Add a new stat
llvm-svn: 11167
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/GraphChecker.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/GraphChecker.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/GraphChecker.cpp b/llvm/lib/Analysis/DataStructure/GraphChecker.cpp index 6d78621..5cbd5ba 100644 --- a/llvm/lib/Analysis/DataStructure/GraphChecker.cpp +++ b/llvm/lib/Analysis/DataStructure/GraphChecker.cpp @@ -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(); } } |