LLVM 22.0.0git
Dwarf constants parsing functions

These functions map their strings back to the corresponding enumeration value or return 0 if there is none, except for these exceptions: More...

Functions

LLVM_ABI unsigned llvm::dwarf::getTag (StringRef TagString)
LLVM_ABI unsigned llvm::dwarf::getOperationEncoding (StringRef OperationEncodingString)
LLVM_ABI unsigned llvm::dwarf::getSubOperationEncoding (unsigned OpEncoding, StringRef SubOperationEncodingString)
LLVM_ABI unsigned llvm::dwarf::getVirtuality (StringRef VirtualityString)
LLVM_ABI unsigned llvm::dwarf::getEnumKind (StringRef EnumKindString)
LLVM_ABI unsigned llvm::dwarf::getLanguage (StringRef LanguageString)
LLVM_ABI unsigned llvm::dwarf::getCallingConvention (StringRef LanguageString)
LLVM_ABI unsigned llvm::dwarf::getAttributeEncoding (StringRef EncodingString)
LLVM_ABI unsigned llvm::dwarf::getMacinfo (StringRef MacinfoString)
LLVM_ABI unsigned llvm::dwarf::getMacro (StringRef MacroString)

Detailed Description

These functions map their strings back to the corresponding enumeration value or return 0 if there is none, except for these exceptions:

Function Documentation

◆ getAttributeEncoding()

unsigned llvm::dwarf::getAttributeEncoding ( StringRef EncodingString)

Definition at line 274 of file Dwarf.cpp.

References llvm::StringSwitch< T, R >::Default().

Referenced by llvm::LLParser::parseMDField().

◆ getCallingConvention()

unsigned llvm::dwarf::getCallingConvention ( StringRef LanguageString)

Definition at line 500 of file Dwarf.cpp.

References llvm::StringSwitch< T, R >::Default().

Referenced by llvm::LLParser::parseMDField().

◆ getEnumKind()

unsigned llvm::dwarf::getEnumKind ( StringRef EnumKindString)

◆ getLanguage()

unsigned llvm::dwarf::getLanguage ( StringRef LanguageString)

Definition at line 423 of file Dwarf.cpp.

References llvm::StringSwitch< T, R >::Default(), and LanguageString().

Referenced by llvm::LLParser::parseMDField().

◆ getMacinfo()

◆ getMacro()

unsigned llvm::dwarf::getMacro ( StringRef MacroString)

◆ getOperationEncoding()

◆ getSubOperationEncoding()

unsigned llvm::dwarf::getSubOperationEncoding ( unsigned OpEncoding,
StringRef SubOperationEncodingString )

Definition at line 209 of file Dwarf.cpp.

References assert(), getLlvmUserOperationEncoding(), and SubOperationEncodingString().

◆ getTag()

unsigned llvm::dwarf::getTag ( StringRef TagString)

◆ getVirtuality()

unsigned llvm::dwarf::getVirtuality ( StringRef VirtualityString)