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
[legend]
Collaboration diagram for llvm::coverage::BinaryCoverageReader:
Collaboration graph
[legend]

Classes

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 )
delete

Member Function Documentation

◆ create()

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

◆ createCoverageReaderFromBuffer()

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

◆ operator=()

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

◆ readNextRecord()

Error BinaryCoverageReader::readNextRecord ( CoverageMappingRecord Record)
overridevirtual

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