diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-21 22:27:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-21 22:27:31 +0000 |
commit | 5171115cf3b03e05cf2ffd905800f9275c846787 (patch) | |
tree | ae1a2e3eb2dde262d6bb87ed2a37d4b9c91656ed /lib/Analysis/DataStructure/Printer.cpp | |
parent | 9c0b9bf2b5df5699c8c2b53dc5a32876f36043e2 (diff) | |
download | external_llvm-5171115cf3b03e05cf2ffd905800f9275c846787.zip external_llvm-5171115cf3b03e05cf2ffd905800f9275c846787.tar.gz external_llvm-5171115cf3b03e05cf2ffd905800f9275c846787.tar.bz2 |
Use handy method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Printer.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/Printer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp index a5cb4da..e25bc4c 100644 --- 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(); |