llvm-cov: s/(.*)Executed/\1Exec/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yuchen Wu 2013-12-18 18:46:25 +00:00
parent f6358f3eef
commit 2ceb6aeb66

View File

@ -525,18 +525,18 @@ void FileInfo::printFunctionSummary(raw_fd_ostream &OS,
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";
}
}