[llvm] r368011 - Change two unnecessary uses of llvm::size(C) to C.size()
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 03:24:37 PDT 2019
Author: maskray
Date: Tue Aug 6 03:24:36 2019
New Revision: 368011
URL: http://llvm.org/viewvc/llvm-project?rev=368011&view=rev
Log:
Change two unnecessary uses of llvm::size(C) to C.size()
Modified:
llvm/trunk/lib/Analysis/LazyCallGraph.cpp
Modified: llvm/trunk/lib/Analysis/LazyCallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyCallGraph.cpp?rev=368011&r1=368010&r2=368011&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyCallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyCallGraph.cpp Tue Aug 6 03:24:36 2019
@@ -1751,16 +1751,14 @@ static void printNode(raw_ostream &OS, L
}
static void printSCC(raw_ostream &OS, LazyCallGraph::SCC &C) {
- ptrdiff_t Size = size(C);
- OS << " SCC with " << Size << " functions:\n";
+ OS << " SCC with " << C.size() << " functions:\n";
for (LazyCallGraph::Node &N : C)
OS << " " << N.getFunction().getName() << "\n";
}
static void printRefSCC(raw_ostream &OS, LazyCallGraph::RefSCC &C) {
- ptrdiff_t Size = size(C);
- OS << " RefSCC with " << Size << " call SCCs:\n";
+ OS << " RefSCC with " << C.size() << " call SCCs:\n";
for (LazyCallGraph::SCC &InnerC : C)
printSCC(OS, InnerC);
More information about the llvm-commits
mailing list