1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

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

llvm-svn: 197595
This commit is contained in:
Yuchen Wu 2013-12-18 18:46:25 +00:00
parent fabdd3701d
commit 6e8ee043cc

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";
}
}