LLVM API Documentation

Public Types | Public Member Functions
llvm::GCOVFunction Class Reference

GCOVFunction - Collects function information. More...

#include <GCOV.h>

List of all members.

Public Types

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

Public Member Functions

 GCOVFunction (GCOVFile &P)
bool readGCNO (GCOVBuffer &Buffer, GCOV::GCOVVersion Version)
bool readGCDA (GCOVBuffer &Buffer, GCOV::GCOVVersion Version)
StringRef getName () const
StringRef getFilename () const
size_t getNumBlocks () const
uint64_t getEntryCount () const
uint64_t getExitCount () const
BlockIterator block_begin () const
BlockIterator block_end () const
void dump () const
 dump - Dump GCOVFunction content to dbgs() for debugging purposes.
void collectLineCounts (FileInfo &FI)

Detailed Description

GCOVFunction - Collects function information.

Definition at line 261 of file GCOV.h.


Member Typedef Documentation

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

Definition at line 264 of file GCOV.h.


Constructor & Destructor Documentation

Definition at line 266 of file GCOV.h.


Member Function Documentation

Definition at line 275 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::begin().

Definition at line 276 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::end().

collectLineCounts - Collect line counts. This must be used after reading .gcno and .gcda files.

Definition at line 308 of file GCOV.cpp.

References llvm::FileInfo::addFunctionLine().

void GCOVFunction::dump ( ) const

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

Definition at line 300 of file GCOV.cpp.

References llvm::dbgs(), and Name.

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 289 of file GCOV.cpp.

References llvm::SmallVectorTemplateCommon< T, typename >::front().

uint64_t GCOVFunction::getExitCount ( ) const

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

Definition at line 295 of file GCOV.cpp.

References llvm::SmallVectorTemplateCommon< T, typename >::back().

Definition at line 270 of file GCOV.h.

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

Definition at line 269 of file GCOV.h.

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

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

Definition at line 271 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::size().


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