LLVM  3.7.0
Public Types | Public Member Functions | List of all members
llvm::GCOVFunction Class Reference

GCOVFunction - Collects function information. More...

#include <GCOV.h>

Public Types

typedef pointee_iterator
< SmallVectorImpl
< std::unique_ptr< GCOVBlock >
>::const_iterator > 
BlockIterator
 

Public Member Functions

 GCOVFunction (GCOVFile &P)
 
bool readGCNO (GCOVBuffer &Buffer, GCOV::GCOVVersion Version)
 readGCNO - Read a function from the GCNO buffer. More...
 
bool readGCDA (GCOVBuffer &Buffer, GCOV::GCOVVersion Version)
 readGCDA - Read a function from the GCDA buffer. More...
 
StringRef getName () const
 
StringRef getFilename () const
 
size_t getNumBlocks () const
 
uint64_t getEntryCount () const
 getEntryCount - Get the number of times the function was called by retrieving the entry block's count. More...
 
uint64_t getExitCount () const
 getExitCount - Get the number of times the function returned by retrieving the exit block's count. More...
 
BlockIterator block_begin () const
 
BlockIterator block_end () const
 
iterator_range< BlockIteratorblocks () const
 
void dump () const
 dump - Dump GCOVFunction content to dbgs() for debugging purposes. More...
 
void collectLineCounts (FileInfo &FI)
 collectLineCounts - Collect line counts. More...
 

Detailed Description

GCOVFunction - Collects function information.

Definition at line 257 of file GCOV.h.

Member Typedef Documentation

typedef pointee_iterator<SmallVectorImpl< std::unique_ptr<GCOVBlock> >::const_iterator> llvm::GCOVFunction::BlockIterator

Definition at line 260 of file GCOV.h.

Constructor & Destructor Documentation

llvm::GCOVFunction::GCOVFunction ( GCOVFile P)
inline

Definition at line 262 of file GCOV.h.

Member Function Documentation

BlockIterator llvm::GCOVFunction::block_begin ( ) const
inline

Definition at line 271 of file GCOV.h.

Referenced by blocks().

BlockIterator llvm::GCOVFunction::block_end ( ) const
inline

Definition at line 272 of file GCOV.h.

Referenced by blocks().

iterator_range<BlockIterator> llvm::GCOVFunction::blocks ( ) const
inline

Definition at line 273 of file GCOV.h.

References block_begin(), block_end(), and llvm::make_range().

void GCOVFunction::collectLineCounts ( FileInfo FI)

collectLineCounts - Collect line counts.

This must be used after reading .gcno and .gcda files.

Definition at line 352 of file GCOV.cpp.

References llvm::FileInfo::addFunctionLine(), and llvm::Block.

void GCOVFunction::dump ( ) const

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

Definition at line 343 of file GCOV.cpp.

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

uint64_t GCOVFunction::getEntryCount ( ) const

getEntryCount - Get the number of times the function was called by retrieving the entry block's count.

Definition at line 332 of file GCOV.cpp.

uint64_t GCOVFunction::getExitCount ( ) const

getExitCount - Get the number of times the function returned by retrieving the exit block's count.

Definition at line 338 of file GCOV.cpp.

StringRef llvm::GCOVFunction::getFilename ( ) const
inline

Definition at line 266 of file GCOV.h.

Referenced by llvm::GCOVBlock::collectLineCounts().

StringRef llvm::GCOVFunction::getName ( ) const
inline

Definition at line 265 of file GCOV.h.

Referenced by llvm::FileInfo::print().

size_t llvm::GCOVFunction::getNumBlocks ( ) const
inline

Definition at line 267 of file GCOV.h.

bool GCOVFunction::readGCDA ( GCOVBuffer Buff,
GCOV::GCOVVersion  Version 
)
bool GCOVFunction::readGCNO ( GCOVBuffer Buff,
GCOV::GCOVVersion  Version 
)

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