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

Definition at line 84 of file BTFParser.cpp.

Member Function Documentation

◆ findSection()

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

Definition at line 95 of file BTFParser.cpp.

References Name, and llvm::BTFParser::ParseContext::Sections.

◆ makeExtractor()

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

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: