LLVM
8.0.1
|
GCOVFile - Collects coverage information for one pair of coverage file (.gcno and .gcda). More...
#include "llvm/ProfileData/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... | |
GCOVFile - Collects coverage information for one pair of coverage file (.gcno and .gcda).
|
default |
void GCOVFile::collectLineCounts | ( | FileInfo & | FI | ) |
collectLineCounts - Collect line counts.
This must be used after reading .gcno and .gcda files.
Definition at line 119 of file GCOV.cpp.
References llvm::FileInfo::setProgramCount(), and llvm::FileInfo::setRunCount().
LLVM_DUMP_METHOD void GCOVFile::dump | ( | ) | const |
|
inline |
Definition at line 250 of file GCOV.h.
References llvm::dump(), print(), and llvm::IndexedInstrProf::Version.
void GCOVFile::print | ( | raw_ostream & | OS | ) | const |
Definition at line 107 of file GCOV.cpp.
Referenced by branchDiv(), dump(), llvm::GCOVFunction::dump(), and llvm::GCOVBlock::dump().
bool GCOVFile::readGCDA | ( | GCOVBuffer & | Buffer | ) |
readGCDA - Read GCDA buffer.
It is required that readGCDA() can only be called after readGCNO().
Definition at line 55 of file GCOV.cpp.
References llvm::GCOVBuffer::advanceCursor(), assert(), llvm::NVPTXISD::Dummy, llvm::errs(), llvm::GCOVBuffer::readFunctionTag(), llvm::GCOVBuffer::readGCDAFormat(), llvm::GCOVBuffer::readGCOVVersion(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readObjectTag(), and llvm::GCOVBuffer::readProgramTag().
bool GCOVFile::readGCNO | ( | GCOVBuffer & | Buffer | ) |
readGCNO - Read GCNO buffer.
Definition at line 32 of file GCOV.cpp.
References llvm::GCOVBuffer::readFunctionTag(), llvm::GCOVBuffer::readGCNOFormat(), llvm::GCOVBuffer::readGCOVVersion(), and llvm::GCOVBuffer::readInt().