mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
GCOV.cpp: Fix format strings, %lf. Don't use %lf to double.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
115654f15c
commit
722f58c6b3
@ -636,15 +636,15 @@ void FileInfo::printUncondBranchInfo(raw_fd_ostream &OS, uint32_t &EdgeNo,
|
||||
// printCoverage - Print generic coverage info used by both printFuncCoverage
|
||||
// and printFileCoverage.
|
||||
void FileInfo::printCoverage(const GCOVCoverage &Coverage) const {
|
||||
outs() << format("Lines executed:%.2lf%% of %u\n",
|
||||
outs() << format("Lines executed:%.2f%% of %u\n",
|
||||
double(Coverage.LinesExec)*100/Coverage.LogicalLines,
|
||||
Coverage.LogicalLines);
|
||||
if (Options.BranchInfo) {
|
||||
if (Coverage.Branches) {
|
||||
outs() << format("Branches executed:%.2lf%% of %u\n",
|
||||
outs() << format("Branches executed:%.2f%% of %u\n",
|
||||
double(Coverage.BranchesExec)*100/Coverage.Branches,
|
||||
Coverage.Branches);
|
||||
outs() << format("Taken at least once:%.2lf%% of %u\n",
|
||||
outs() << format("Taken at least once:%.2f%% of %u\n",
|
||||
double(Coverage.BranchesTaken)*100/Coverage.Branches,
|
||||
Coverage.Branches);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user