LLVM API Documentation

Classes | Public Member Functions
llvm::coverage::ObjectFileCoverageMappingReader Class Reference

Reader for the coverage mapping data that is emitted by the frontend and stored in an object file. More...

#include <CoverageMappingReader.h>

List of all members.

Classes

struct  ProfileMappingRecord

Public Member Functions

 ObjectFileCoverageMappingReader (StringRef FileName)
 ObjectFileCoverageMappingReader (std::unique_ptr< MemoryBuffer > &ObjectBuffer, sys::fs::file_magic Type=sys::fs::file_magic::unknown)
std::error_code readHeader ()
std::error_code readNextRecord (CoverageMappingRecord &Record)
CoverageMappingIterator begin ()
 Iterator over profile data.
CoverageMappingIterator end ()
bool isEOF ()
 Return true if the reader has finished reading the profile data.
bool hasError ()
 Return true if the reader encountered an error reading profiling data.
std::error_code getError ()
 Get the current error code.

Detailed Description

Reader for the coverage mapping data that is emitted by the frontend and stored in an object file.

Definition at line 142 of file CoverageMappingReader.h.


Constructor & Destructor Documentation

ObjectFileCoverageMappingReader::ObjectFileCoverageMappingReader ( StringRef  FileName)
ObjectFileCoverageMappingReader::ObjectFileCoverageMappingReader ( std::unique_ptr< MemoryBuffer > &  ObjectBuffer,
sys::fs::file_magic  Type = sys::fs::file_magic::unknown 
)

Member Function Documentation

Iterator over profile data.

Definition at line 194 of file CoverageMappingReader.h.

Definition at line 195 of file CoverageMappingReader.h.

Get the current error code.

Definition at line 203 of file CoverageMappingReader.h.

Referenced by readHeader().

Return true if the reader encountered an error reading profiling data.

Definition at line 201 of file CoverageMappingReader.h.

References isEOF().

Return true if the reader has finished reading the profile data.

Definition at line 198 of file CoverageMappingReader.h.

References llvm::eof.

Referenced by hasError().


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