LLVM API Documentation
#include <GCOV.h>
Public Member Functions | |
GCOVBuffer (MemoryBuffer *B) | |
GCOV::GCOVFormat | readGCOVFormat () |
readGCOVFormat - Read GCOV signature at the beginning of buffer. More... | |
bool | readFunctionTag () |
bool | readBlockTag () |
bool | readEdgeTag () |
bool | readLineTag () |
bool | readArcTag () |
bool | readObjectTag () |
bool | readProgramTag () |
bool | readInt (uint32_t &Val) |
bool | readInt64 (uint64_t &Val) |
bool | readString (StringRef &Str) |
uint64_t | getCursor () const |
void | advanceCursor (uint32_t n) |
GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific read operations.
|
inline |
|
inline |
Definition at line 186 of file GCOV.h.
Referenced by llvm::GCOVFile::read().
|
inline |
Definition at line 185 of file GCOV.h.
Referenced by llvm::GCOVFunction::read().
|
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().
|
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().
|
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().
|
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::GCOVFile::read().
|
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().
|
inline |
Definition at line 154 of file GCOV.h.
References llvm::StringRef::data(), llvm::errs(), llvm::MemoryBuffer::getBuffer(), llvm::StringRef::size(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::read(), llvm::GCOVFunction::read(), readInt64(), and readString().
|
inline |
Definition at line 165 of file GCOV.h.
References llvm::HexagonISD::Hi, llvm::HexagonISD::Lo, and readInt().
Referenced by llvm::GCOVFunction::read().
|
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().
|
inline |
readObjectTag - If cursor points to an object summary tag then increment the cursor and return true otherwise return false.
Definition at line 130 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::read().
|
inline |
readProgramTag - If cursor points to a program summary tag then increment the cursor and return true otherwise return false.
Definition at line 143 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::read().
Definition at line 172 of file GCOV.h.
References llvm::errs(), llvm::MemoryBuffer::getBuffer(), readInt(), llvm::StringRef::size(), llvm::StringRef::slice(), and llvm::StringRef::split().
Referenced by llvm::GCOVFunction::read().