LLVM 20.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::GCOVFile Class Reference

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

#include "llvm/ProfileData/GCOV.h"

Public Types

using iterator = pointee_iterator< SmallVectorImpl< std::unique_ptr< GCOVFunction > >::const_iterator >
 

Public Member Functions

 GCOVFile ()=default
 
bool readGCNO (GCOVBuffer &Buffer)
 readGCNO - Read GCNO buffer.
 
bool readGCDA (GCOVBuffer &Buffer)
 readGCDA - Read GCDA buffer.
 
GCOV::GCOVVersion getVersion () const
 
void print (raw_ostream &OS) const
 
void dump () const
 dump - Dump GCOVFile content to dbgs() for debugging purposes.
 
iterator begin () const
 
iterator end () const
 

Public Attributes

std::vector< std::string > filenames
 
StringMap< unsignedfilenameToIdx
 
bool GCNOInitialized = false
 
GCOV::GCOVVersion version {}
 
uint32_t checksum = 0
 
StringRef cwd
 
SmallVector< std::unique_ptr< GCOVFunction >, 16 > functions
 
std::map< uint32_t, GCOVFunction * > identToFunction
 
uint32_t runCount = 0
 
uint32_t programCount = 0
 

Detailed Description

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

Definition at line 191 of file GCOV.h.

Member Typedef Documentation

◆ iterator

Definition at line 214 of file GCOV.h.

Constructor & Destructor Documentation

◆ GCOVFile()

llvm::GCOVFile::GCOVFile ( )
default

Member Function Documentation

◆ begin()

iterator llvm::GCOVFile::begin ( ) const
inline

Definition at line 216 of file GCOV.h.

References functions.

◆ dump()

LLVM_DUMP_METHOD void GCOVFile::dump ( ) const

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

Definition at line 314 of file GCOV.cpp.

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

◆ end()

iterator llvm::GCOVFile::end ( ) const
inline

Definition at line 217 of file GCOV.h.

References functions.

◆ getVersion()

GCOV::GCOVVersion llvm::GCOVFile::getVersion ( ) const
inline

Definition at line 197 of file GCOV.h.

References version.

Referenced by llvm::GCOVFunction::getExitBlock().

◆ print()

void GCOVFile::print ( raw_ostream OS) const

Definition at line 307 of file GCOV.cpp.

References OS.

Referenced by dump().

◆ readGCDA()

bool GCOVFile::readGCDA ( GCOVBuffer buf)

◆ readGCNO()

bool GCOVFile::readGCNO ( GCOVBuffer Buffer)

Member Data Documentation

◆ checksum

uint32_t llvm::GCOVFile::checksum = 0

Definition at line 207 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ cwd

StringRef llvm::GCOVFile::cwd

Definition at line 208 of file GCOV.h.

Referenced by readGCNO().

◆ filenames

std::vector<std::string> llvm::GCOVFile::filenames

Definition at line 201 of file GCOV.h.

Referenced by llvm::GCOVFunction::getFilename().

◆ filenameToIdx

StringMap<unsigned> llvm::GCOVFile::filenameToIdx

Definition at line 202 of file GCOV.h.

◆ functions

SmallVector<std::unique_ptr<GCOVFunction>, 16> llvm::GCOVFile::functions

Definition at line 209 of file GCOV.h.

Referenced by begin(), end(), and readGCNO().

◆ GCNOInitialized

bool llvm::GCOVFile::GCNOInitialized = false

Definition at line 205 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ identToFunction

std::map<uint32_t, GCOVFunction *> llvm::GCOVFile::identToFunction

Definition at line 210 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ programCount

uint32_t llvm::GCOVFile::programCount = 0

Definition at line 212 of file GCOV.h.

Referenced by readGCDA().

◆ runCount

uint32_t llvm::GCOVFile::runCount = 0

Definition at line 211 of file GCOV.h.

Referenced by readGCDA().

◆ version

GCOV::GCOVVersion llvm::GCOVFile::version {}

Definition at line 206 of file GCOV.h.

Referenced by getVersion(), readGCDA(), and readGCNO().


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