LLVM API Documentation
#include <GCOV.h>
Public Member Functions | |
GCOVFile () | |
bool | readGCNO (GCOVBuffer &Buffer) |
readGCNO - Read GCNO buffer. | |
bool | readGCDA (GCOVBuffer &Buffer) |
uint32_t | getChecksum () const |
void | dump () const |
dump - Dump GCOVFile content to dbgs() for debugging purposes. | |
void | collectLineCounts (FileInfo &FI) |
GCOVFile - Collects coverage information for one pair of coverage file (.gcno and .gcda).
llvm::GCOVFile::GCOVFile | ( | ) | [inline] |
void GCOVFile::collectLineCounts | ( | FileInfo & | FI | ) |
collectLineCounts - Collect line counts. This must be used after reading .gcno and .gcda files.
Definition at line 101 of file GCOV.cpp.
References llvm::FileInfo::setProgramCount(), and llvm::FileInfo::setRunCount().
void GCOVFile::dump | ( | ) | const |
uint32_t llvm::GCOVFile::getChecksum | ( | ) | const [inline] |
Definition at line 239 of file GCOV.h.
Referenced by llvm::GCOVFunction::readGCDA(), and llvm::GCOVFunction::readGCNO().
bool GCOVFile::readGCDA | ( | GCOVBuffer & | Buffer | ) |
readGCDA - Read GCDA buffer. It is required that readGCDA() can only be called after readGCNO().
Definition at line 49 of file GCOV.cpp.
References llvm::GCOVBuffer::advanceCursor(), llvm::NVPTXISD::Dummy, llvm::errs(), llvm::GCOVBuffer::readFunctionTag(), llvm::GCOVBuffer::readGCDAFormat(), llvm::GCOVBuffer::readGCOVVersion(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readObjectTag(), llvm::GCOVBuffer::readProgramTag(), llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::IndexedInstrProf::Version.
bool GCOVFile::readGCNO | ( | GCOVBuffer & | Buffer | ) |
readGCNO - Read GCNO buffer.
Definition at line 30 of file GCOV.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::GCOVBuffer::readFunctionTag(), llvm::GCOVBuffer::readGCNOFormat(), llvm::GCOVBuffer::readGCOVVersion(), llvm::GCOVBuffer::readInt(), and llvm::IndexedInstrProf::Version.