projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c0b9bf
)
Use handy method
author
Chris Lattner
<sabre@nondot.org>
Sat, 21 Feb 2004 22:27:31 +0000
(22:27 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 21 Feb 2004 22:27:31 +0000
(22:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11692
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DataStructure/Printer.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/Printer.cpp
b/lib/Analysis/DataStructure/Printer.cpp
index a5cb4da0b1b1856ee15d4cd4ad0955b7dec04e0a..e25bc4c43264d39c28ce4bf461d970869a7f5cec 100644
(file)
--- a/
lib/Analysis/DataStructure/Printer.cpp
+++ b/
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();