LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
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.

Member Function Documentation

◆ findSection()

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

Definition at line 95 of file BTFParser.cpp.

References Name, and llvm::BTFParser::ParseContext::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 llvm::BTFParser::ParseContext::makeExtractor().

◆ Opts

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

Definition at line 79 of file BTFParser.cpp.

◆ Sections

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

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