X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FIR%2FGCOV.cpp;h=466828113b8f7861494bae1d1536830606d11971;hb=65c98b9da474d0562f883d6001f31ba5b2b95183;hp=140d259c2a65cc78fdcbb3b6ff847d82ec9bef1a;hpb=d218959ec5e6c7d3b129f9437bc243b9bdab9e27;p=oota-llvm.git diff --git a/lib/IR/GCOV.cpp b/lib/IR/GCOV.cpp index 140d259c2a6..466828113b8 100644 --- a/lib/IR/GCOV.cpp +++ b/lib/IR/GCOV.cpp @@ -13,10 +13,10 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/Debug.h" -#include "llvm/Support/GCOV.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/Format.h" +#include "llvm/Support/GCOV.h" #include "llvm/Support/MemoryObject.h" #include "llvm/Support/system_error.h" #include @@ -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 {