LLVM 22.0.0git
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

Public Member Functions

 GCOVFile ()=default
LLVM_ABI bool readGCNO (GCOVBuffer &Buffer)
 readGCNO - Read GCNO buffer.
LLVM_ABI bool readGCDA (GCOVBuffer &Buffer)
 readGCDA - Read GCDA buffer.
GCOV::GCOVVersion getVersion () const
LLVM_ABI void print (raw_ostream &OS) const
LLVM_ABI 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 192 of file GCOV.h.

Member Typedef Documentation

◆ iterator

Initial value:
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
An iterator type that allows iterating over the pointees via some other iterator.
Definition iterator.h:324

Definition at line 215 of file GCOV.h.

Constructor & Destructor Documentation

◆ GCOVFile()

llvm::GCOVFile::GCOVFile ( )
default

References LLVM_ABI.

Member Function Documentation

◆ begin()

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

Definition at line 217 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(), LLVM_DUMP_METHOD, and print().

◆ end()

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

Definition at line 218 of file GCOV.h.

References functions.

◆ getVersion()

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

Definition at line 198 of file GCOV.h.

References version.

◆ print()

void GCOVFile::print ( raw_ostream & OS) const

Definition at line 307 of file GCOV.cpp.

Referenced by dump().

◆ readGCDA()

◆ readGCNO()

Member Data Documentation

◆ checksum

uint32_t llvm::GCOVFile::checksum = 0

Definition at line 208 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ cwd

StringRef llvm::GCOVFile::cwd

Definition at line 209 of file GCOV.h.

Referenced by readGCNO().

◆ filenames

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

Definition at line 202 of file GCOV.h.

◆ filenameToIdx

StringMap<unsigned> llvm::GCOVFile::filenameToIdx

Definition at line 203 of file GCOV.h.

◆ functions

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

Definition at line 210 of file GCOV.h.

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

◆ GCNOInitialized

bool llvm::GCOVFile::GCNOInitialized = false

Definition at line 206 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ identToFunction

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

Definition at line 211 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ programCount

uint32_t llvm::GCOVFile::programCount = 0

Definition at line 213 of file GCOV.h.

Referenced by readGCDA().

◆ runCount

uint32_t llvm::GCOVFile::runCount = 0

Definition at line 212 of file GCOV.h.

Referenced by readGCDA().

◆ version

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

Definition at line 207 of file GCOV.h.

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


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