LLVM  11.0.0git
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::coverage::BinaryCoverageReader Class Reference

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

#include "llvm/ProfileData/Coverage/CoverageMappingReader.h"

Inheritance diagram for llvm::coverage::BinaryCoverageReader:
Inheritance graph
Collaboration diagram for llvm::coverage::BinaryCoverageReader:
Collaboration graph


struct  ProfileMappingRecord

Public Types

using DecompressedData = std::vector< std::unique_ptr< SmallVector< char, 0 > >>

Public Member Functions

 BinaryCoverageReader (const BinaryCoverageReader &)=delete
BinaryCoverageReaderoperator= (const BinaryCoverageReader &)=delete
Error readNextRecord (CoverageMappingRecord &Record) override
- Public Member Functions inherited from llvm::coverage::CoverageMappingReader
virtual ~CoverageMappingReader ()=default
CoverageMappingIterator begin ()
CoverageMappingIterator end ()

Static Public Member Functions

static Expected< std::vector< std::unique_ptr< BinaryCoverageReader > > > create (MemoryBufferRef ObjectBuffer, StringRef Arch, SmallVectorImpl< std::unique_ptr< MemoryBuffer >> &ObjectFileBuffers)
static Expected< std::unique_ptr< BinaryCoverageReader > > createCoverageReaderFromBuffer (StringRef Coverage, std::string &&FuncRecords, InstrProfSymtab &&ProfileNames, uint8_t BytesInAddress, support::endianness Endian)

Detailed Description

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

Definition at line 159 of file CoverageMappingReader.h.

Member Typedef Documentation

◆ DecompressedData

Definition at line 177 of file CoverageMappingReader.h.

Constructor & Destructor Documentation

◆ BinaryCoverageReader()

llvm::coverage::BinaryCoverageReader::BinaryCoverageReader ( const BinaryCoverageReader )

Member Function Documentation

◆ create()

Expected< std::vector< std::unique_ptr< BinaryCoverageReader > > > BinaryCoverageReader::create ( MemoryBufferRef  ObjectBuffer,
StringRef  Arch,
SmallVectorImpl< std::unique_ptr< MemoryBuffer >> &  ObjectFileBuffers 

◆ createCoverageReaderFromBuffer()

Expected< std::unique_ptr< BinaryCoverageReader > > BinaryCoverageReader::createCoverageReaderFromBuffer ( StringRef  Coverage,
std::string &&  FuncRecords,
InstrProfSymtab &&  ProfileNames,
uint8_t  BytesInAddress,
support::endianness  Endian 

◆ operator=()

BinaryCoverageReader& llvm::coverage::BinaryCoverageReader::operator= ( const BinaryCoverageReader )

◆ readNextRecord()

Error BinaryCoverageReader::readNextRecord ( CoverageMappingRecord Record)

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