LLVM  14.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"

Collaboration diagram for llvm::GCOVFile:
Collaboration graph
[legend]

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. More...
 
bool readGCDA (GCOVBuffer &Buffer)
 readGCDA - Read GCDA buffer. More...
 
GCOV::GCOVVersion getVersion () const
 
void print (raw_ostream &OS) const
 
void dump () const
 dump - Dump GCOVFile content to dbgs() for debugging purposes. More...
 
iterator begin () const
 
iterator end () const
 

Public Attributes

std::vector< std::string > filenames
 
StringMap< unsigned > filenameToIdx
 
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 194 of file GCOV.h.

Member Typedef Documentation

◆ iterator

Definition at line 218 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 219 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 325 of file GCOV.cpp.

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

◆ end()

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

Definition at line 220 of file GCOV.h.

References functions.

◆ getVersion()

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

Definition at line 200 of file GCOV.h.

References version.

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

◆ print()

void GCOVFile::print ( raw_ostream OS) const

Definition at line 318 of file GCOV.cpp.

References f().

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 210 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ cwd

StringRef llvm::GCOVFile::cwd

Definition at line 211 of file GCOV.h.

Referenced by readGCNO().

◆ filenames

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

Definition at line 204 of file GCOV.h.

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

◆ filenameToIdx

StringMap<unsigned> llvm::GCOVFile::filenameToIdx

Definition at line 205 of file GCOV.h.

Referenced by readGCNO().

◆ functions

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

Definition at line 212 of file GCOV.h.

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

◆ GCNOInitialized

bool llvm::GCOVFile::GCNOInitialized = false

Definition at line 208 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ identToFunction

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

Definition at line 213 of file GCOV.h.

Referenced by readGCDA(), and readGCNO().

◆ programCount

uint32_t llvm::GCOVFile::programCount = 0

Definition at line 215 of file GCOV.h.

Referenced by readGCDA().

◆ runCount

uint32_t llvm::GCOVFile::runCount = 0

Definition at line 214 of file GCOV.h.

Referenced by readGCDA().

◆ version

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

Definition at line 209 of file GCOV.h.

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


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