20 #ifndef LLVM_BINARYFORMAT_DWARF_H
21 #define LLVM_BINARYFORMAT_DWARF_H
24 #include "llvm/Support/DataTypes.h"
69 #define HANDLE_DW_TAG(ID, NAME, VERSION, VENDOR) DW_TAG_##NAME = ID,
70 #include "llvm/BinaryFormat/Dwarf.def"
78 case DW_TAG_array_type:
79 case DW_TAG_class_type:
80 case DW_TAG_interface_type:
81 case DW_TAG_enumeration_type:
82 case DW_TAG_pointer_type:
83 case DW_TAG_reference_type:
84 case DW_TAG_rvalue_reference_type:
85 case DW_TAG_string_type:
86 case DW_TAG_structure_type:
87 case DW_TAG_subroutine_type:
88 case DW_TAG_union_type:
89 case DW_TAG_ptr_to_member_type:
91 case DW_TAG_subrange_type:
92 case DW_TAG_base_type:
93 case DW_TAG_const_type:
94 case DW_TAG_file_type:
95 case DW_TAG_packed_type:
96 case DW_TAG_volatile_type:
106 #define HANDLE_DW_AT(ID, NAME, VERSION, VENDOR) DW_AT_##NAME = ID,
107 #include "llvm/BinaryFormat/Dwarf.def"
113 #define HANDLE_DW_FORM(ID, NAME, VERSION, VENDOR) DW_FORM_##NAME = ID,
114 #include "llvm/BinaryFormat/Dwarf.def"
119 #define HANDLE_DW_OP(ID, NAME, VERSION, VENDOR) DW_OP_##NAME = ID,
120 #include "llvm/BinaryFormat/Dwarf.def"
127 #define HANDLE_DW_ATE(ID, NAME, VERSION, VENDOR) DW_ATE_##NAME = ID,
128 #include "llvm/BinaryFormat/Dwarf.def"
166 #define HANDLE_DW_VIRTUALITY(ID, NAME) DW_VIRTUALITY_##NAME = ID,
167 #include "llvm/BinaryFormat/Dwarf.def"
172 #define HANDLE_DW_DEFAULTED(ID, NAME) DW_DEFAULTED_##NAME = ID,
173 #include "llvm/BinaryFormat/Dwarf.def"
178 #define HANDLE_DW_LANG(ID, NAME, VERSION, VENDOR) DW_LANG_##NAME = ID,
179 #include "llvm/BinaryFormat/Dwarf.def"
194 #define HANDLE_DW_CC(ID, NAME) DW_CC_##NAME = ID,
195 #include "llvm/BinaryFormat/Dwarf.def"
222 #define HANDLE_DW_LNS(ID, NAME) DW_LNS_##NAME = ID,
223 #include "llvm/BinaryFormat/Dwarf.def"
228 #define HANDLE_DW_LNE(ID, NAME) DW_LNE_##NAME = ID,
229 #include "llvm/BinaryFormat/Dwarf.def"
235 #define HANDLE_DW_LNCT(ID, NAME) DW_LNCT_##NAME = ID,
236 #include "llvm/BinaryFormat/Dwarf.def"
252 #define HANDLE_DW_MACRO(ID, NAME) DW_MACRO_##NAME = ID,
253 #include "llvm/BinaryFormat/Dwarf.def"
260 #define HANDLE_DW_RLE(ID, NAME) DW_RLE_##NAME = ID,
261 #include "llvm/BinaryFormat/Dwarf.def"
266 #define HANDLE_DW_CFA(ID, NAME) DW_CFA_##NAME = ID,
267 #include "llvm/BinaryFormat/Dwarf.def"
314 #define HANDLE_DW_APPLE_PROPERTY(ID, NAME) DW_APPLE_PROPERTY_##NAME = ID,
315 #include "llvm/BinaryFormat/Dwarf.def"
320 #define HANDLE_DW_UT(ID, NAME) DW_UT_##NAME = ID,
321 #include "llvm/BinaryFormat/Dwarf.def"
468 : Kind(Kind), Linkage(Linkage) {}
477 return Kind << KIND_OFFSET |
Linkage << LINKAGE_OFFSET;
483 KIND_MASK = 7 << KIND_OFFSET,
485 LINKAGE_MASK = 1 << LINKAGE_OFFSET
unsigned FormVersion(Form F)
StringRef ApplePropertyString(unsigned)
PubIndexEntryDescriptor(GDBIndexEntryKind Kind)
LineNumberOps
Line Number Standard Opcode Encodings.
StringRef AtomTypeString(unsigned Atom)
unsigned FormVendor(Form F)
StringRef LNExtendedString(unsigned Encoding)
StringRef LNStandardString(unsigned Standard)
unsigned TagVendor(Tag T)
ELFYAML::ELF_STV Visibility
unsigned getVirtuality(StringRef VirtualityString)
CallFrameInfo
Call frame instruction encodings.
DwarfFormat
Constants that define the DWARF format as 32 or 64 bit.
unsigned TagVersion(Tag T)
unsigned AttributeVendor(Attribute A)
StringRef FormEncodingString(unsigned Encoding)
Only used in LLVM metadata.
PubIndexEntryDescriptor(uint8_t Value)
unsigned LanguageVendor(SourceLanguage L)
Decsribes an entry of the various gnu_pub* debug sections.
MacroEntryType
DWARF v5 macro information entry type encodings.
StringRef AttributeString(unsigned Attribute)
StringRef LanguageString(unsigned Language)
StringRef DecimalSignString(unsigned Sign)
StringRef AttributeValueString(uint16_t Attr, unsigned Val)
Returns the symbolic string representing Val when used as a value for attribute Attr.
unsigned LanguageVersion(SourceLanguage L)
StringRef GDBIndexEntryKindString(GDBIndexEntryKind Kind)
StringRef AccessibilityString(unsigned Access)
const uint32_t DW_INVALID_OFFSET
StringRef EndianityString(unsigned Endian)
StringRef AttributeEncodingString(unsigned Encoding)
StringRef CallFrameString(unsigned Encoding)
unsigned OperationVendor(LocationAtom O)
unsigned getCallingConvention(StringRef LanguageString)
unsigned getOperationEncoding(StringRef OperationEncodingString)
StringRef DiscriminantString(unsigned Discriminant)
StringRef ArrayOrderString(unsigned Order)
unsigned OperationVersion(LocationAtom O)
StringRef GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage)
GDBIndexEntryLinkage Linkage
unsigned getLanguage(StringRef LanguageString)
LineNumberExtendedOps
Line Number Extended Opcode Encodings.
StringRef VirtualityString(unsigned Virtuality)
StringRef OperationEncodingString(unsigned Encoding)
unsigned getTag(StringRef TagString)
UnitType
Constants for unit types in DWARF v5.
StringRef CaseString(unsigned Case)
constexpr char Language[]
Key for Kernel::Metadata::mLanguage.
ApplePropertyAttributes
Constants for the DW_APPLE_PROPERTY_attributes attribute.
unsigned AttributeVersion(Attribute A)
LocationListEntry
Constants for location lists in DWARF v5.
PubIndexEntryDescriptor(GDBIndexEntryKind Kind, GDBIndexEntryLinkage Linkage)
unsigned AttributeEncodingVersion(TypeKind E)
StringRef VisibilityString(unsigned Visibility)
RangeListEntries
DWARF v5 range list entry encoding values.
StringRef UnitTypeString(unsigned)
StringRef TagString(unsigned Tag)
unsigned AttributeEncodingVendor(TypeKind E)
StringRef InlineCodeString(unsigned Code)
StringRef ConventionString(unsigned Convention)
unsigned getMacinfo(StringRef MacinfoString)
StringRef ChildrenString(unsigned Children)
bool isValidFormForVersion(Form F, unsigned Version, bool ExtensionsOk=true)
Tells whether the specified form is defined in the specified version, or is an extension if extension...
LLVM Value Representation.
unsigned getAttributeEncoding(StringRef EncodingString)
StringRef - Represent a constant reference to a string, i.e.
StringRef MacinfoString(unsigned Encoding)
const uint64_t DW64_CIE_ID