LLVM 20.0.0git
|
Enumerations | |
enum | AttrType : unsigned { File = 1 , Section = 2 , Symbol = 3 } |
enum | AttrMagic { Format_Version = 0x41 } |
Functions | |
StringRef | attrTypeAsString (unsigned attr, TagNameMap tagNameMap, bool hasTagPrefix=true) |
std::optional< unsigned > | attrTypeFromString (StringRef tag, TagNameMap tagNameMap) |
Enumerator | |
---|---|
Format_Version |
Definition at line 34 of file ELFAttributes.h.
enum llvm::ELFAttrs::AttrType : unsigned |
Enumerator | |
---|---|
File | |
Section | |
Symbol |
Definition at line 27 of file ELFAttributes.h.
StringRef llvm::ELFAttrs::attrTypeAsString | ( | unsigned | attr, |
TagNameMap | tagNameMap, | ||
bool | hasTagPrefix = true |
||
) |
Definition at line 14 of file ELFAttributes.cpp.
References llvm::TagNameItem::attr, llvm::StringRef::drop_front(), llvm::ArrayRef< T >::end(), and llvm::find_if().
Referenced by llvm::ELFAttributeParser::integerAttribute(), llvm::ELFAttributeParser::printAttribute(), and llvm::ELFAttributeParser::stringAttribute().
std::optional< unsigned > llvm::ELFAttrs::attrTypeFromString | ( | StringRef | tag, |
TagNameMap | tagNameMap | ||
) |
Definition at line 24 of file ELFAttributes.cpp.
References llvm::StringRef::drop_front(), llvm::ArrayRef< T >::end(), llvm::find_if(), llvm::StringRef::starts_with(), and llvm::TagNameItem::tagName.