LLVM  5.0.0
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

llvm::GCOVFile::GCOVFile ( )
default

Member Function Documentation

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().

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().

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

Definition at line 248 of file GCOV.h.

Referenced by llvm::GCOVFunction::readGCDA(), and llvm::GCOVFunction::readGCNO().

void GCOVFile::print ( raw_ostream &  OS) const

Definition at line 106 of file GCOV.cpp.

Referenced by dump().

bool GCOVFile::readGCDA ( GCOVBuffer &  Buffer)
bool GCOVFile::readGCNO ( GCOVBuffer &  Buffer)

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