LLVM  8.0.1
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, uint32_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 28 of file FDRRecordProducer.h.

Constructor & Destructor Documentation

◆ FileBasedRecordProducer()

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

Definition at line 39 of file FDRRecordProducer.h.

References llvm::xray::RecordProducer::produce().

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 113 of file FDRRecordProducer.cpp.

References assert(), llvm::createStringError(), llvm::dyn_cast(), llvm::DataExtractor::getU8(), llvm::joinErrors(), llvm::make_error_code(), and llvm::xray::XRayFileHeader::Version.


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