1 //===- GCOV.cpp - LLVM coverage tool --------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // GCOV implements the interface to read and write coverage files that use
13 //===----------------------------------------------------------------------===//
15 #include "llvm/Support/GCOV.h"
16 #include "llvm/ADT/STLExtras.h"
17 #include "llvm/Support/Debug.h"
18 #include "llvm/Support/FileSystem.h"
19 #include "llvm/Support/Format.h"
20 #include "llvm/Support/MemoryObject.h"
21 #include "llvm/Support/Path.h"
23 #include <system_error>
26 //===----------------------------------------------------------------------===//
27 // GCOVFile implementation.
29 /// readGCNO - Read GCNO buffer.
30 bool GCOVFile::readGCNO(GCOVBuffer &Buffer) {
31 if (!Buffer.readGCNOFormat())
33 if (!Buffer.readGCOVVersion(Version))
36 if (!Buffer.readInt(Checksum))
39 if (!Buffer.readFunctionTag())
41 auto GFun = make_unique<GCOVFunction>(*this);
42 if (!GFun->readGCNO(Buffer, Version))
44 Functions.push_back(std::move(GFun));
47 GCNOInitialized = true;
51 /// readGCDA - Read GCDA buffer. It is required that readGCDA() can only be
52 /// called after readGCNO().
53 bool GCOVFile::readGCDA(GCOVBuffer &Buffer) {
54 assert(GCNOInitialized && "readGCDA() can only be called after readGCNO()");
55 if (!Buffer.readGCDAFormat())
57 GCOV::GCOVVersion GCDAVersion;
58 if (!Buffer.readGCOVVersion(GCDAVersion))
60 if (Version != GCDAVersion) {
61 errs() << "GCOV versions do not match.\n";
65 uint32_t GCDAChecksum;
66 if (!Buffer.readInt(GCDAChecksum))
68 if (Checksum != GCDAChecksum) {
69 errs() << "File checksums do not match: " << Checksum
70 << " != " << GCDAChecksum << ".\n";
73 for (size_t i = 0, e = Functions.size(); i < e; ++i) {
74 if (!Buffer.readFunctionTag()) {
75 errs() << "Unexpected number of functions.\n";
78 if (!Functions[i]->readGCDA(Buffer, Version))
81 if (Buffer.readObjectTag()) {
84 if (!Buffer.readInt(Length))
86 if (!Buffer.readInt(Dummy))
87 return false; // checksum
88 if (!Buffer.readInt(Dummy))
90 if (!Buffer.readInt(RunCount))
92 Buffer.advanceCursor(Length - 3);
94 while (Buffer.readProgramTag()) {
96 if (!Buffer.readInt(Length))
98 Buffer.advanceCursor(Length);
105 /// dump - Dump GCOVFile content to dbgs() for debugging purposes.
106 void GCOVFile::dump() const {
107 for (const auto &FPtr : Functions)
111 /// collectLineCounts - Collect line counts. This must be used after
112 /// reading .gcno and .gcda files.
113 void GCOVFile::collectLineCounts(FileInfo &FI) {
114 for (const auto &FPtr : Functions)
115 FPtr->collectLineCounts(FI);
116 FI.setRunCount(RunCount);
117 FI.setProgramCount(ProgramCount);
120 //===----------------------------------------------------------------------===//
121 // GCOVFunction implementation.
123 /// readGCNO - Read a function from the GCNO buffer. Return false if an error
125 bool GCOVFunction::readGCNO(GCOVBuffer &Buff, GCOV::GCOVVersion Version) {
127 if (!Buff.readInt(Dummy))
128 return false; // Function header length
129 if (!Buff.readInt(Ident))
131 if (!Buff.readInt(Checksum))
133 if (Version != GCOV::V402) {
134 uint32_t CfgChecksum;
135 if (!Buff.readInt(CfgChecksum))
137 if (Parent.getChecksum() != CfgChecksum) {
138 errs() << "File checksums do not match: " << Parent.getChecksum()
139 << " != " << CfgChecksum << " in (" << Name << ").\n";
143 if (!Buff.readString(Name))
145 if (!Buff.readString(Filename))
147 if (!Buff.readInt(LineNumber))
151 if (!Buff.readBlockTag()) {
152 errs() << "Block tag not found.\n";
156 if (!Buff.readInt(BlockCount))
158 for (uint32_t i = 0, e = BlockCount; i != e; ++i) {
159 if (!Buff.readInt(Dummy))
160 return false; // Block flags;
161 Blocks.push_back(make_unique<GCOVBlock>(*this, i));
165 while (Buff.readEdgeTag()) {
167 if (!Buff.readInt(EdgeCount))
169 EdgeCount = (EdgeCount - 1) / 2;
171 if (!Buff.readInt(BlockNo))
173 if (BlockNo >= BlockCount) {
174 errs() << "Unexpected block number: " << BlockNo << " (in " << Name
178 for (uint32_t i = 0, e = EdgeCount; i != e; ++i) {
180 if (!Buff.readInt(Dst))
182 Edges.push_back(make_unique<GCOVEdge>(*Blocks[BlockNo], *Blocks[Dst]));
183 GCOVEdge *Edge = Edges.back().get();
184 Blocks[BlockNo]->addDstEdge(Edge);
185 Blocks[Dst]->addSrcEdge(Edge);
186 if (!Buff.readInt(Dummy))
187 return false; // Edge flag
192 while (Buff.readLineTag()) {
193 uint32_t LineTableLength;
194 // Read the length of this line table.
195 if (!Buff.readInt(LineTableLength))
197 uint32_t EndPos = Buff.getCursor() + LineTableLength * 4;
199 // Read the block number this table is associated with.
200 if (!Buff.readInt(BlockNo))
202 if (BlockNo >= BlockCount) {
203 errs() << "Unexpected block number: " << BlockNo << " (in " << Name
207 GCOVBlock &Block = *Blocks[BlockNo];
208 // Read the word that pads the beginning of the line table. This may be a
209 // flag of some sort, but seems to always be zero.
210 if (!Buff.readInt(Dummy))
213 // Line information starts here and continues up until the last word.
214 if (Buff.getCursor() != (EndPos - sizeof(uint32_t))) {
216 // Read the source file name.
217 if (!Buff.readString(F))
220 errs() << "Multiple sources for a single basic block: " << Filename
221 << " != " << F << " (in " << Name << ").\n";
224 // Read lines up to, but not including, the null terminator.
225 while (Buff.getCursor() < (EndPos - 2 * sizeof(uint32_t))) {
227 if (!Buff.readInt(Line))
229 // Line 0 means this instruction was injected by the compiler. Skip it.
234 // Read the null terminator.
235 if (!Buff.readInt(Dummy))
238 // The last word is either a flag or padding, it isn't clear which. Skip
240 if (!Buff.readInt(Dummy))
246 /// readGCDA - Read a function from the GCDA buffer. Return false if an error
248 bool GCOVFunction::readGCDA(GCOVBuffer &Buff, GCOV::GCOVVersion Version) {
250 if (!Buff.readInt(Dummy))
251 return false; // Function header length
254 if (!Buff.readInt(GCDAIdent))
256 if (Ident != GCDAIdent) {
257 errs() << "Function identifiers do not match: " << Ident
258 << " != " << GCDAIdent << " (in " << Name << ").\n";
262 uint32_t GCDAChecksum;
263 if (!Buff.readInt(GCDAChecksum))
265 if (Checksum != GCDAChecksum) {
266 errs() << "Function checksums do not match: " << Checksum
267 << " != " << GCDAChecksum << " (in " << Name << ").\n";
271 uint32_t CfgChecksum;
272 if (Version != GCOV::V402) {
273 if (!Buff.readInt(CfgChecksum))
275 if (Parent.getChecksum() != CfgChecksum) {
276 errs() << "File checksums do not match: " << Parent.getChecksum()
277 << " != " << CfgChecksum << " (in " << Name << ").\n";
283 if (!Buff.readString(GCDAName))
285 if (Name != GCDAName) {
286 errs() << "Function names do not match: " << Name << " != " << GCDAName
291 if (!Buff.readArcTag()) {
292 errs() << "Arc tag not found (in " << Name << ").\n";
297 if (!Buff.readInt(Count))
301 // This for loop adds the counts for each block. A second nested loop is
302 // required to combine the edge counts that are contained in the GCDA file.
303 for (uint32_t BlockNo = 0; Count > 0; ++BlockNo) {
304 // The last block is always reserved for exit block
305 if (BlockNo >= Blocks.size()) {
306 errs() << "Unexpected number of edges (in " << Name << ").\n";
309 if (BlockNo == Blocks.size() - 1)
310 errs() << "(" << Name << ") has arcs from exit block.\n";
311 GCOVBlock &Block = *Blocks[BlockNo];
312 for (size_t EdgeNo = 0, End = Block.getNumDstEdges(); EdgeNo < End;
315 errs() << "Unexpected number of edges (in " << Name << ").\n";
319 if (!Buff.readInt64(ArcCount))
321 Block.addCount(EdgeNo, ArcCount);
324 Block.sortDstEdges();
329 /// getEntryCount - Get the number of times the function was called by
330 /// retrieving the entry block's count.
331 uint64_t GCOVFunction::getEntryCount() const {
332 return Blocks.front()->getCount();
335 /// getExitCount - Get the number of times the function returned by retrieving
336 /// the exit block's count.
337 uint64_t GCOVFunction::getExitCount() const {
338 return Blocks.back()->getCount();
341 /// dump - Dump GCOVFunction content to dbgs() for debugging purposes.
342 void GCOVFunction::dump() const {
343 dbgs() << "===== " << Name << " (" << Ident << ") @ " << Filename << ":"
344 << LineNumber << "\n";
345 for (const auto &Block : Blocks)
349 /// collectLineCounts - Collect line counts. This must be used after
350 /// reading .gcno and .gcda files.
351 void GCOVFunction::collectLineCounts(FileInfo &FI) {
352 // If the line number is zero, this is a function that doesn't actually appear
353 // in the source file, so there isn't anything we can do with it.
357 for (const auto &Block : Blocks)
358 Block->collectLineCounts(FI);
359 FI.addFunctionLine(Filename, LineNumber, this);
362 //===----------------------------------------------------------------------===//
363 // GCOVBlock implementation.
365 /// ~GCOVBlock - Delete GCOVBlock and its content.
366 GCOVBlock::~GCOVBlock() {
372 /// addCount - Add to block counter while storing the edge count. If the
373 /// destination has no outgoing edges, also update that block's count too.
374 void GCOVBlock::addCount(size_t DstEdgeNo, uint64_t N) {
375 assert(DstEdgeNo < DstEdges.size()); // up to caller to ensure EdgeNo is valid
376 DstEdges[DstEdgeNo]->Count = N;
378 if (!DstEdges[DstEdgeNo]->Dst.getNumDstEdges())
379 DstEdges[DstEdgeNo]->Dst.Counter += N;
382 /// sortDstEdges - Sort destination edges by block number, nop if already
383 /// sorted. This is required for printing branch info in the correct order.
384 void GCOVBlock::sortDstEdges() {
385 if (!DstEdgesAreSorted) {
386 SortDstEdgesFunctor SortEdges;
387 std::stable_sort(DstEdges.begin(), DstEdges.end(), SortEdges);
391 /// collectLineCounts - Collect line counts. This must be used after
392 /// reading .gcno and .gcda files.
393 void GCOVBlock::collectLineCounts(FileInfo &FI) {
394 for (uint32_t N : Lines)
395 FI.addBlockLine(Parent.getFilename(), N, this);
398 /// dump - Dump GCOVBlock content to dbgs() for debugging purposes.
399 void GCOVBlock::dump() const {
400 dbgs() << "Block : " << Number << " Counter : " << Counter << "\n";
401 if (!SrcEdges.empty()) {
402 dbgs() << "\tSource Edges : ";
403 for (const GCOVEdge *Edge : SrcEdges)
404 dbgs() << Edge->Src.Number << " (" << Edge->Count << "), ";
407 if (!DstEdges.empty()) {
408 dbgs() << "\tDestination Edges : ";
409 for (const GCOVEdge *Edge : DstEdges)
410 dbgs() << Edge->Dst.Number << " (" << Edge->Count << "), ";
413 if (!Lines.empty()) {
414 dbgs() << "\tLines : ";
415 for (uint32_t N : Lines)
416 dbgs() << (N) << ",";
421 //===----------------------------------------------------------------------===//
422 // FileInfo implementation.
424 // Safe integer division, returns 0 if numerator is 0.
425 static uint32_t safeDiv(uint64_t Numerator, uint64_t Divisor) {
428 return Numerator / Divisor;
431 // This custom division function mimics gcov's branch ouputs:
432 // - Round to closest whole number
433 // - Only output 0% or 100% if it's exactly that value
434 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) {
437 if (Numerator == Divisor)
440 uint8_t Res = (Numerator * 100 + Divisor / 2) / Divisor;
448 struct formatBranchInfo {
449 formatBranchInfo(const GCOVOptions &Options, uint64_t Count, uint64_t Total)
450 : Options(Options), Count(Count), Total(Total) {}
452 void print(raw_ostream &OS) const {
454 OS << "never executed";
455 else if (Options.BranchCount)
456 OS << "taken " << Count;
458 OS << "taken " << branchDiv(Count, Total) << "%";
461 const GCOVOptions &Options;
466 static raw_ostream &operator<<(raw_ostream &OS, const formatBranchInfo &FBI) {
473 std::unique_ptr<MemoryBuffer> Buffer;
477 LineConsumer(StringRef Filename) {
478 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
479 MemoryBuffer::getFileOrSTDIN(Filename);
480 if (std::error_code EC = BufferOrErr.getError()) {
481 errs() << Filename << ": " << EC.message() << "\n";
484 Buffer = std::move(BufferOrErr.get());
485 Remaining = Buffer->getBuffer();
488 bool empty() { return Remaining.empty(); }
489 void printNext(raw_ostream &OS, uint32_t LineNum) {
494 std::tie(Line, Remaining) = Remaining.split("\n");
495 OS << format("%5u:", LineNum) << Line << "\n";
500 /// Convert a path to a gcov filename. If PreservePaths is true, this
501 /// translates "/" to "#", ".." to "^", and drops ".", to match gcov.
502 static std::string mangleCoveragePath(StringRef Filename, bool PreservePaths) {
504 return sys::path::filename(Filename).str();
506 // This behaviour is defined by gcov in terms of text replacements, so it's
507 // not likely to do anything useful on filesystems with different textual
509 llvm::SmallString<256> Result("");
510 StringRef::iterator I, S, E;
511 for (I = S = Filename.begin(), E = Filename.end(); I != E; ++I) {
515 if (I - S == 1 && *S == '.') {
516 // ".", the current directory, is skipped.
517 } else if (I - S == 2 && *S == '.' && *(S + 1) == '.') {
518 // "..", the parent directory, is replaced with "^".
522 // Leave other components intact,
524 // And separate with "#".
525 Result.push_back('#');
535 std::string FileInfo::getCoveragePath(StringRef Filename,
536 StringRef MainFilename) {
537 if (Options.NoOutput)
538 // This is probably a bug in gcov, but when -n is specified, paths aren't
539 // mangled at all, and the -l and -p options are ignored. Here, we do the
543 std::string CoveragePath;
544 if (Options.LongFileNames && !Filename.equals(MainFilename))
546 mangleCoveragePath(MainFilename, Options.PreservePaths) + "##";
547 CoveragePath += mangleCoveragePath(Filename, Options.PreservePaths) + ".gcov";
551 std::unique_ptr<raw_ostream>
552 FileInfo::openCoveragePath(StringRef CoveragePath) {
553 if (Options.NoOutput)
554 return llvm::make_unique<raw_null_ostream>();
557 auto OS = llvm::make_unique<raw_fd_ostream>(CoveragePath.str(), EC,
560 errs() << EC.message() << "\n";
561 return llvm::make_unique<raw_null_ostream>();
563 return std::move(OS);
566 /// print - Print source files with collected line count information.
567 void FileInfo::print(raw_ostream &InfoOS, StringRef MainFilename,
568 StringRef GCNOFile, StringRef GCDAFile) {
569 for (const auto &LI : LineInfo) {
570 StringRef Filename = LI.first();
571 auto AllLines = LineConsumer(Filename);
573 std::string CoveragePath = getCoveragePath(Filename, MainFilename);
574 std::unique_ptr<raw_ostream> CovStream = openCoveragePath(CoveragePath);
575 raw_ostream &CovOS = *CovStream;
577 CovOS << " -: 0:Source:" << Filename << "\n";
578 CovOS << " -: 0:Graph:" << GCNOFile << "\n";
579 CovOS << " -: 0:Data:" << GCDAFile << "\n";
580 CovOS << " -: 0:Runs:" << RunCount << "\n";
581 CovOS << " -: 0:Programs:" << ProgramCount << "\n";
583 const LineData &Line = LI.second;
584 GCOVCoverage FileCoverage(Filename);
585 for (uint32_t LineIndex = 0; LineIndex < Line.LastLine || !AllLines.empty();
587 if (Options.BranchInfo) {
588 FunctionLines::const_iterator FuncsIt = Line.Functions.find(LineIndex);
589 if (FuncsIt != Line.Functions.end())
590 printFunctionSummary(CovOS, FuncsIt->second);
593 BlockLines::const_iterator BlocksIt = Line.Blocks.find(LineIndex);
594 if (BlocksIt == Line.Blocks.end()) {
595 // No basic blocks are on this line. Not an executable line of code.
597 AllLines.printNext(CovOS, LineIndex + 1);
599 const BlockVector &Blocks = BlocksIt->second;
601 // Add up the block counts to form line counts.
602 DenseMap<const GCOVFunction *, bool> LineExecs;
603 uint64_t LineCount = 0;
604 for (const GCOVBlock *Block : Blocks) {
605 if (Options.AllBlocks) {
606 // Only take the highest block count for that line.
607 uint64_t BlockCount = Block->getCount();
608 LineCount = LineCount > BlockCount ? LineCount : BlockCount;
610 // Sum up all of the block counts.
611 LineCount += Block->getCount();
614 if (Options.FuncCoverage) {
615 // This is a slightly convoluted way to most accurately gather line
616 // statistics for functions. Basically what is happening is that we
617 // don't want to count a single line with multiple blocks more than
618 // once. However, we also don't simply want to give the total line
619 // count to every function that starts on the line. Thus, what is
620 // happening here are two things:
621 // 1) Ensure that the number of logical lines is only incremented
622 // once per function.
623 // 2) If there are multiple blocks on the same line, ensure that the
624 // number of lines executed is incremented as long as at least
625 // one of the blocks are executed.
626 const GCOVFunction *Function = &Block->getParent();
627 if (FuncCoverages.find(Function) == FuncCoverages.end()) {
628 std::pair<const GCOVFunction *, GCOVCoverage> KeyValue(
629 Function, GCOVCoverage(Function->getName()));
630 FuncCoverages.insert(KeyValue);
632 GCOVCoverage &FuncCoverage = FuncCoverages.find(Function)->second;
634 if (LineExecs.find(Function) == LineExecs.end()) {
635 if (Block->getCount()) {
636 ++FuncCoverage.LinesExec;
637 LineExecs[Function] = true;
639 LineExecs[Function] = false;
641 ++FuncCoverage.LogicalLines;
642 } else if (!LineExecs[Function] && Block->getCount()) {
643 ++FuncCoverage.LinesExec;
644 LineExecs[Function] = true;
652 CovOS << format("%9" PRIu64 ":", LineCount);
653 ++FileCoverage.LinesExec;
655 ++FileCoverage.LogicalLines;
657 AllLines.printNext(CovOS, LineIndex + 1);
659 uint32_t BlockNo = 0;
661 for (const GCOVBlock *Block : Blocks) {
662 // Only print block and branch information at the end of the block.
663 if (Block->getLastLine() != LineIndex + 1)
665 if (Options.AllBlocks)
666 printBlockInfo(CovOS, *Block, LineIndex, BlockNo);
667 if (Options.BranchInfo) {
668 size_t NumEdges = Block->getNumDstEdges();
670 printBranchInfo(CovOS, *Block, FileCoverage, EdgeNo);
671 else if (Options.UncondBranch && NumEdges == 1)
672 printUncondBranchInfo(CovOS, EdgeNo,
673 (*Block->dst_begin())->Count);
678 FileCoverages.push_back(std::make_pair(CoveragePath, FileCoverage));
681 // FIXME: There is no way to detect calls given current instrumentation.
682 if (Options.FuncCoverage)
683 printFuncCoverage(InfoOS);
684 printFileCoverage(InfoOS);
688 /// printFunctionSummary - Print function and block summary.
689 void FileInfo::printFunctionSummary(raw_ostream &OS,
690 const FunctionVector &Funcs) const {
691 for (const GCOVFunction *Func : Funcs) {
692 uint64_t EntryCount = Func->getEntryCount();
693 uint32_t BlocksExec = 0;
694 for (const GCOVBlock &Block : Func->blocks())
695 if (Block.getNumDstEdges() && Block.getCount())
698 OS << "function " << Func->getName() << " called " << EntryCount
699 << " returned " << safeDiv(Func->getExitCount() * 100, EntryCount)
700 << "% blocks executed "
701 << safeDiv(BlocksExec * 100, Func->getNumBlocks() - 1) << "%\n";
705 /// printBlockInfo - Output counts for each block.
706 void FileInfo::printBlockInfo(raw_ostream &OS, const GCOVBlock &Block,
707 uint32_t LineIndex, uint32_t &BlockNo) const {
708 if (Block.getCount() == 0)
711 OS << format("%9" PRIu64 ":", Block.getCount());
712 OS << format("%5u-block %2u\n", LineIndex + 1, BlockNo++);
715 /// printBranchInfo - Print conditional branch probabilities.
716 void FileInfo::printBranchInfo(raw_ostream &OS, const GCOVBlock &Block,
717 GCOVCoverage &Coverage, uint32_t &EdgeNo) {
718 SmallVector<uint64_t, 16> BranchCounts;
719 uint64_t TotalCounts = 0;
720 for (const GCOVEdge *Edge : Block.dsts()) {
721 BranchCounts.push_back(Edge->Count);
722 TotalCounts += Edge->Count;
723 if (Block.getCount())
724 ++Coverage.BranchesExec;
726 ++Coverage.BranchesTaken;
729 if (Options.FuncCoverage) {
730 const GCOVFunction *Function = &Block.getParent();
731 GCOVCoverage &FuncCoverage = FuncCoverages.find(Function)->second;
732 if (Block.getCount())
733 ++FuncCoverage.BranchesExec;
735 ++FuncCoverage.BranchesTaken;
736 ++FuncCoverage.Branches;
740 for (uint64_t N : BranchCounts)
741 OS << format("branch %2u ", EdgeNo++)
742 << formatBranchInfo(Options, N, TotalCounts) << "\n";
745 /// printUncondBranchInfo - Print unconditional branch probabilities.
746 void FileInfo::printUncondBranchInfo(raw_ostream &OS, uint32_t &EdgeNo,
747 uint64_t Count) const {
748 OS << format("unconditional %2u ", EdgeNo++)
749 << formatBranchInfo(Options, Count, Count) << "\n";
752 // printCoverage - Print generic coverage info used by both printFuncCoverage
753 // and printFileCoverage.
754 void FileInfo::printCoverage(raw_ostream &OS,
755 const GCOVCoverage &Coverage) const {
756 OS << format("Lines executed:%.2f%% of %u\n",
757 double(Coverage.LinesExec) * 100 / Coverage.LogicalLines,
758 Coverage.LogicalLines);
759 if (Options.BranchInfo) {
760 if (Coverage.Branches) {
761 OS << format("Branches executed:%.2f%% of %u\n",
762 double(Coverage.BranchesExec) * 100 / Coverage.Branches,
764 OS << format("Taken at least once:%.2f%% of %u\n",
765 double(Coverage.BranchesTaken) * 100 / Coverage.Branches,
768 OS << "No branches\n";
770 OS << "No calls\n"; // to be consistent with gcov
774 // printFuncCoverage - Print per-function coverage info.
775 void FileInfo::printFuncCoverage(raw_ostream &OS) const {
776 for (const auto &FC : FuncCoverages) {
777 const GCOVCoverage &Coverage = FC.second;
778 OS << "Function '" << Coverage.Name << "'\n";
779 printCoverage(OS, Coverage);
784 // printFileCoverage - Print per-file coverage info.
785 void FileInfo::printFileCoverage(raw_ostream &OS) const {
786 for (const auto &FC : FileCoverages) {
787 const std::string &Filename = FC.first;
788 const GCOVCoverage &Coverage = FC.second;
789 OS << "File '" << Coverage.Name << "'\n";
790 printCoverage(OS, Coverage);
791 if (!Options.NoOutput)
792 OS << Coverage.Name << ":creating '" << Filename << "'\n";