LLVM 22.0.0git
llvm::ELFCompactAttrParser Class Referenceabstract

#include "llvm/Support/ELFAttrParserCompact.h"

Inheritance diagram for llvm::ELFCompactAttrParser:
[legend]

Public Member Functions

virtual ~ELFCompactAttrParser ()
Error integerAttribute (unsigned tag)
Error stringAttribute (unsigned tag)
 ELFCompactAttrParser (ScopedPrinter *sw, TagNameMap tagNameMap, StringRef vendor)
 ELFCompactAttrParser (TagNameMap tagNameMap, StringRef vendor)
Error parse (ArrayRef< uint8_t > section, llvm::endianness endian) override
std::optional< unsignedgetAttributeValue (unsigned tag) const override
std::optional< unsignedgetAttributeValue (StringRef buildAttributeSubsectionName, unsigned tag) const override
std::optional< StringRefgetAttributeString (unsigned tag) const override
std::optional< StringRefgetAttributeString (StringRef buildAttributeSubsectionName, unsigned tag) const override
Public Member Functions inherited from llvm::ELFAttributeParser
virtual ~ELFAttributeParser ()

Protected Member Functions

void printAttribute (unsigned tag, unsigned value, StringRef valueDesc)
Error parseStringAttribute (const char *name, unsigned tag, ArrayRef< const char * > strings)
Error parseAttributeList (uint32_t length)
void parseIndexList (SmallVectorImpl< uint8_t > &indexList)
Error parseSubsection (uint32_t length)
void setAttributeString (unsigned tag, StringRef value)

Protected Attributes

ScopedPrintersw
TagNameMap tagToStringMap
DataExtractor de {ArrayRef<uint8_t>{}, true, 0}
DataExtractor::Cursor cursor {0}

Detailed Description

Definition at line 26 of file ELFAttrParserCompact.h.

Constructor & Destructor Documentation

◆ ~ELFCompactAttrParser()

virtual llvm::ELFCompactAttrParser::~ELFCompactAttrParser ( )
inlinevirtual

Definition at line 52 of file ELFAttrParserCompact.h.

References cursor.

◆ ELFCompactAttrParser() [1/2]

◆ ELFCompactAttrParser() [2/2]

llvm::ELFCompactAttrParser::ELFCompactAttrParser ( TagNameMap tagNameMap,
StringRef vendor )
inline

Definition at line 59 of file ELFAttrParserCompact.h.

References sw, and tagToStringMap.

Member Function Documentation

◆ getAttributeString() [1/2]

std::optional< StringRef > llvm::ELFCompactAttrParser::getAttributeString ( StringRef buildAttributeSubsectionName,
unsigned tag ) const
inlineoverridevirtual

Reimplemented from llvm::ELFAttributeParser.

Definition at line 84 of file ELFAttrParserCompact.h.

References assert(), and getAttributeString().

◆ getAttributeString() [2/2]

std::optional< StringRef > llvm::ELFCompactAttrParser::getAttributeString ( unsigned tag) const
inlineoverridevirtual

Reimplemented from llvm::ELFAttributeParser.

Definition at line 77 of file ELFAttrParserCompact.h.

References I.

Referenced by getAttributeString().

◆ getAttributeValue() [1/2]

std::optional< unsigned > llvm::ELFCompactAttrParser::getAttributeValue ( StringRef buildAttributeSubsectionName,
unsigned tag ) const
inlineoverridevirtual

Reimplemented from llvm::ELFAttributeParser.

Definition at line 71 of file ELFAttrParserCompact.h.

References assert(), and getAttributeValue().

◆ getAttributeValue() [2/2]

std::optional< unsigned > llvm::ELFCompactAttrParser::getAttributeValue ( unsigned tag) const
inlineoverridevirtual

Reimplemented from llvm::ELFAttributeParser.

Definition at line 64 of file ELFAttrParserCompact.h.

References I.

Referenced by getAttributeValue().

◆ integerAttribute()

Error ELFCompactAttrParser::integerAttribute ( unsigned tag)

◆ parse()

◆ parseAttributeList()

Error ELFCompactAttrParser::parseAttributeList ( uint32_t length)
protected

◆ parseIndexList()

void ELFCompactAttrParser::parseIndexList ( SmallVectorImpl< uint8_t > & indexList)
protected

◆ parseStringAttribute()

Error ELFCompactAttrParser::parseStringAttribute ( const char * name,
unsigned tag,
ArrayRef< const char * > strings )
protected

◆ parseSubsection()

◆ printAttribute()

void ELFCompactAttrParser::printAttribute ( unsigned tag,
unsigned value,
StringRef valueDesc )
protected

◆ setAttributeString()

void llvm::ELFCompactAttrParser::setAttributeString ( unsigned tag,
StringRef value )
inlineprotected

Definition at line 47 of file ELFAttrParserCompact.h.

Referenced by stringAttribute().

◆ stringAttribute()

Error ELFCompactAttrParser::stringAttribute ( unsigned tag)

Member Data Documentation

◆ cursor

◆ de

DataExtractor llvm::ELFCompactAttrParser::de {ArrayRef<uint8_t>{}, true, 0}
protected

◆ sw

◆ tagToStringMap

TagNameMap llvm::ELFCompactAttrParser::tagToStringMap
protected

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