LLVM  14.0.0git
Public Member Functions | List of all members
llvm::xray::FileBasedRecordProducer Class Reference

#include "llvm/XRay/FDRRecordProducer.h"

Inheritance diagram for llvm::xray::FileBasedRecordProducer:
Inheritance graph
[legend]
Collaboration diagram for llvm::xray::FileBasedRecordProducer:
Collaboration graph
[legend]

Public Member Functions

 FileBasedRecordProducer (const XRayFileHeader &FH, DataExtractor &DE, uint64_t &OP)
 
Expected< std::unique_ptr< Record > > produce () override
 This producer encapsulates the logic for loading a File-backed RecordProducer hidden behind a DataExtractor. More...
 
- Public Member Functions inherited from llvm::xray::RecordProducer
virtual ~RecordProducer ()=default
 

Detailed Description

Definition at line 27 of file FDRRecordProducer.h.

Constructor & Destructor Documentation

◆ FileBasedRecordProducer()

llvm::xray::FileBasedRecordProducer::FileBasedRecordProducer ( const XRayFileHeader FH,
DataExtractor DE,
uint64_t OP 
)
inline

Definition at line 38 of file FDRRecordProducer.h.

Member Function Documentation

◆ produce()

Expected< std::unique_ptr< Record > > llvm::xray::FileBasedRecordProducer::produce ( )
overridevirtual

This producer encapsulates the logic for loading a File-backed RecordProducer hidden behind a DataExtractor.

Implements llvm::xray::RecordProducer.

Definition at line 112 of file FDRRecordProducer.cpp.

References assert(), llvm::createStringError(), llvm::DataExtractor::getU8(), llvm::joinErrors(), llvm::make_error_code(), and move.


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