LLVM 22.0.0git
llvm::BTFParser::ParseContext Struct Reference

Public Member Functions

 ParseContext (const ObjectFile &Obj, const ParseOptions &Opts)
Expected< DataExtractormakeExtractor (SectionRef Sec)
std::optional< SectionReffindSection (StringRef Name) const

Public Attributes

const ObjectFileObj
const ParseOptionsOpts
DenseMap< StringRef, SectionRefSections

Detailed Description

Definition at line 77 of file BTFParser.cpp.

Constructor & Destructor Documentation

◆ ParseContext()

llvm::BTFParser::ParseContext::ParseContext ( const ObjectFile & Obj,
const ParseOptions & Opts )
inline

Definition at line 84 of file BTFParser.cpp.

References Obj, and Opts.

Member Function Documentation

◆ findSection()

std::optional< SectionRef > llvm::BTFParser::ParseContext::findSection ( StringRef Name) const
inline

Definition at line 95 of file BTFParser.cpp.

References Sections.

◆ makeExtractor()

Expected< DataExtractor > llvm::BTFParser::ParseContext::makeExtractor ( SectionRef Sec)
inline

Member Data Documentation

◆ Obj

const ObjectFile& llvm::BTFParser::ParseContext::Obj

Definition at line 78 of file BTFParser.cpp.

Referenced by makeExtractor(), and ParseContext().

◆ Opts

const ParseOptions& llvm::BTFParser::ParseContext::Opts

Definition at line 79 of file BTFParser.cpp.

Referenced by ParseContext().

◆ Sections

DenseMap<StringRef, SectionRef> llvm::BTFParser::ParseContext::Sections

Definition at line 81 of file BTFParser.cpp.

Referenced by findSection().


The documentation for this struct was generated from the following file: