summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-21 22:27:31 +0000
committerChris Lattner <sabre@nondot.org>2004-02-21 22:27:31 +0000
commiteeb69197bf74efbb0202c0d13816b71f2c17afa1 (patch)
treeea00496ec16345e5c2894d1abae5beed3325a9ba /llvm/lib/Analysis/DataStructure
parent6983f46792b3e92171b3f6d3312b734296030bc2 (diff)
downloadbcm5719-llvm-eeb69197bf74efbb0202c0d13816b71f2c17afa1.tar.gz
bcm5719-llvm-eeb69197bf74efbb0202c0d13816b71f2c17afa1.zip
Use handy method
llvm-svn: 11692
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r--llvm/lib/Analysis/DataStructure/Printer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Printer.cpp b/llvm/lib/Analysis/DataStructure/Printer.cpp
index a5cb4da0b1b..e25bc4c4326 100644
--- a/llvm/lib/Analysis/DataStructure/Printer.cpp
+++ b/llvm/lib/Analysis/DataStructure/Printer.cpp
@@ -249,7 +249,7 @@ static void printCollection(const Collection &C, std::ostream &O,
<< Gr.getGraphSize() << "+" << NumCalls << "]\n";
}
- unsigned GraphSize = std::distance(Gr.node_begin(), Gr.node_end());
+ unsigned GraphSize = Gr.getGraphSize();
if (MaxGraphSize < GraphSize) MaxGraphSize = GraphSize;
for (DSGraph::node_iterator NI = Gr.node_begin(), E = Gr.node_end();
OpenPOWER on IntegriCloud