LLVM API Documentation

Public Member Functions
llvm::GCOVBuffer Class Reference

#include <GCOV.h>

List of all members.

Public Member Functions

 GCOVBuffer (MemoryBuffer *B)
GCOV::GCOVFormat readGCOVFormat ()
 readGCOVFormat - Read GCOV signature at the beginning of buffer.
bool readFunctionTag ()
bool readBlockTag ()
bool readEdgeTag ()
bool readLineTag ()
bool readArcTag ()
uint32_t readInt ()
uint64_t readInt64 ()
StringRef readString ()
uint64_t getCursor () const

Detailed Description

GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific read operations.

Definition at line 42 of file GCOV.h.


Constructor & Destructor Documentation

llvm::GCOVBuffer::GCOVBuffer ( MemoryBuffer B) [inline]

Definition at line 44 of file GCOV.h.


Member Function Documentation

uint64_t llvm::GCOVBuffer::getCursor ( ) const [inline]

Definition at line 151 of file GCOV.h.

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

bool llvm::GCOVBuffer::readArcTag ( ) [inline]

readArcTag - If cursor points to an gcda arc tag then increment the cursor and return true otherwise return false.

Definition at line 117 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

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

bool llvm::GCOVBuffer::readBlockTag ( ) [inline]

readBlockTag - If cursor points to a block tag then increment the cursor and return true otherwise return false.

Definition at line 78 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

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

bool llvm::GCOVBuffer::readEdgeTag ( ) [inline]

readEdgeTag - If cursor points to an edge tag then increment the cursor and return true otherwise return false.

Definition at line 91 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

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

bool llvm::GCOVBuffer::readFunctionTag ( ) [inline]

readFunctionTag - If cursor points to a function tag then increment the cursor and return true otherwise return false.

Definition at line 65 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

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

GCOV::GCOVFormat llvm::GCOVBuffer::readGCOVFormat ( ) [inline]

readGCOVFormat - Read GCOV signature at the beginning of buffer.

Definition at line 47 of file GCOV.h.

References llvm::GCOV::GCDA_402, llvm::GCOV::GCDA_404, llvm::GCOV::GCNO_402, llvm::GCOV::GCNO_404, llvm::MemoryBuffer::getBuffer(), llvm::GCOV::InvalidGCOV, Magic, and llvm::StringRef::slice().

Referenced by llvm::GCOVFile::read().

uint32_t llvm::GCOVBuffer::readInt ( ) [inline]
uint64_t llvm::GCOVBuffer::readInt64 ( ) [inline]

Definition at line 137 of file GCOV.h.

References llvm::HexagonISD::Hi, llvm::HexagonISD::Lo, and readInt().

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

bool llvm::GCOVBuffer::readLineTag ( ) [inline]

readLineTag - If cursor points to a line tag then increment the cursor and return true otherwise return false.

Definition at line 104 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

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

StringRef llvm::GCOVBuffer::readString ( ) [inline]

Definition at line 144 of file GCOV.h.

References llvm::MemoryBuffer::getBuffer(), readInt(), and llvm::StringRef::slice().

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


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