[llvm] r197595 - llvm-cov: s/(.*)Executed/\1Exec/
Yuchen Wu
yuchenericwu at hotmail.com
Wed Dec 18 10:46:25 PST 2013
Author: ywu
Date: Wed Dec 18 12:46:25 2013
New Revision: 197595
URL: http://llvm.org/viewvc/llvm-project?rev=197595&view=rev
Log:
llvm-cov: s/(.*)Executed/\1Exec/
Modified:
llvm/trunk/lib/IR/GCOV.cpp
Modified: llvm/trunk/lib/IR/GCOV.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/GCOV.cpp?rev=197595&r1=197594&r2=197595&view=diff
==============================================================================
--- llvm/trunk/lib/IR/GCOV.cpp (original)
+++ llvm/trunk/lib/IR/GCOV.cpp Wed Dec 18 12:46:25 2013
@@ -525,18 +525,18 @@ void FileInfo::printFunctionSummary(raw_
I != E; ++I) {
const GCOVFunction *Func = *I;
uint64_t EntryCount = Func->getEntryCount();
- uint32_t BlocksExecuted = 0;
+ uint32_t BlocksExec = 0;
for (GCOVFunction::BlockIterator I = Func->block_begin(),
E = Func->block_end(); I != E; ++I) {
const GCOVBlock *Block = *I;
if (Block->getNumDstEdges() && Block->getCount())
- ++BlocksExecuted;
+ ++BlocksExec;
}
OS << "function " << Func->getName() << " called " << EntryCount
<< " returned " << safeDiv(Func->getExitCount()*100, EntryCount)
<< "% blocks executed "
- << safeDiv(BlocksExecuted*100, Func->getNumBlocks()-1) << "%\n";
+ << safeDiv(BlocksExec*100, Func->getNumBlocks()-1) << "%\n";
}
}
More information about the llvm-commits
mailing list