LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::GCOVFile Class Reference

GCOVFile - Collects coverage information for one pair of coverage file (.gcno and .gcda). More...

#include "llvm/Support/GCOV.h"

Public Member Functions

 GCOVFile ()=default
 
bool readGCNO (GCOVBuffer &Buffer)
 readGCNO - Read GCNO buffer. More...
 
bool readGCDA (GCOVBuffer &Buffer)
 readGCDA - Read GCDA buffer. More...
 
uint32_t getChecksum () const
 
void print (raw_ostream &OS) const
 
void dump () const
 dump - Dump GCOVFile content to dbgs() for debugging purposes. More...
 
void collectLineCounts (FileInfo &FI)
 collectLineCounts - Collect line counts. More...
 

Detailed Description

GCOVFile - Collects coverage information for one pair of coverage file (.gcno and .gcda).

Definition at line 242 of file GCOV.h.

Constructor & Destructor Documentation

◆ GCOVFile()

llvm::GCOVFile::GCOVFile ( )
default

Member Function Documentation

◆ collectLineCounts()

void GCOVFile::collectLineCounts ( FileInfo FI)

collectLineCounts - Collect line counts.

This must be used after reading .gcno and .gcda files.

Definition at line 120 of file GCOV.cpp.

References llvm::FileInfo::setProgramCount(), and llvm::FileInfo::setRunCount().

◆ dump()

LLVM_DUMP_METHOD void GCOVFile::dump ( ) const

dump - Dump GCOVFile content to dbgs() for debugging purposes.

Definition at line 113 of file GCOV.cpp.

References llvm::dbgs(), and print().

◆ getChecksum()

uint32_t llvm::GCOVFile::getChecksum ( ) const
inline

Definition at line 248 of file GCOV.h.

References llvm::dump(), and llvm::IndexedInstrProf::Version.

◆ print()

void GCOVFile::print ( raw_ostream OS) const

Definition at line 106 of file GCOV.cpp.

Referenced by branchDiv(), dump(), llvm::GCOVFunction::dump(), and llvm::GCOVBlock::dump().

◆ readGCDA()

bool GCOVFile::readGCDA ( GCOVBuffer Buffer)

◆ readGCNO()

bool GCOVFile::readGCNO ( GCOVBuffer Buffer)

The documentation for this class was generated from the following files: