LLVM 19.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


struct  ProfileMappingRecord

Public Types

using FuncRecordsStorage = std::unique_ptr< MemoryBuffer >

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
virtual Error readNextRecord (CoverageMappingRecord &Record)=0
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, StringRef CompilationDir="", SmallVectorImpl< object::BuildIDRef > *BinaryIDs=nullptr)
static Expected< std::unique_ptr< BinaryCoverageReader > > createCoverageReaderFromBuffer (StringRef Coverage, FuncRecordsStorage &&FuncRecords, std::unique_ptr< InstrProfSymtab > ProfileNamesPtr, uint8_t BytesInAddress, llvm::endianness Endian, StringRef CompilationDir="")

Detailed Description

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

Definition at line 164 of file CoverageMappingReader.h.

Member Typedef Documentation

◆ FuncRecordsStorage

Definition at line 182 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,
StringRef  CompilationDir = "",
SmallVectorImpl< object::BuildIDRef > *  BinaryIDs = nullptr 

◆ createCoverageReaderFromBuffer()

Expected< std::unique_ptr< BinaryCoverageReader > > BinaryCoverageReader::createCoverageReaderFromBuffer ( StringRef  Coverage,
FuncRecordsStorage &&  FuncRecords,
std::unique_ptr< InstrProfSymtab ProfileNamesPtr,
uint8_t  BytesInAddress,
llvm::endianness  Endian,
StringRef  CompilationDir = "" 

◆ 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: