Go to the documentation of this file.
9 #ifndef LLVM_DEBUGINFO_DWARF_DWARFDEBUGMACRO_H
10 #define LLVM_DEBUGINFO_DWARF_DWARFDEBUGMACRO_H
25 #define HANDLE_MACRO_FLAG(ID, NAME) MACRO_##NAME = ID,
26 #include "llvm/BinaryFormat/Dwarf.def"
56 void dumpMacroHeader(raw_ostream &OS)
const;
65 uint8_t getOffsetByteSize()
const;
96 SmallVector<Entry, 4> Macros;
104 std::vector<MacroList> MacroLists;
110 void dump(raw_ostream &OS)
const;
115 return parseImpl(Units, StringExtractor, MacroData,
true);
119 return parseImpl(
None,
None, MacroData,
false);
123 bool empty()
const {
return MacroLists.empty(); }
135 #endif // LLVM_DEBUGINFO_DWARF_DWARFDEBUGMACRO_H
bool empty() const
Return whether the section has any entries.
This is an optimization pass for GlobalISel generic memory operations.
Error parseMacro(DWARFUnitVector::compile_unit_range Units, DataExtractor StringExtractor, DWARFDataExtractor MacroData)
void dump(raw_ostream &OS) const
Print the macro list found within the debug_macinfo/debug_macro section.
DWARFDebugMacro()=default
DwarfFormat
Constants that define the DWARF format as 32 or 64 bit.
decltype(make_filter_range(std::declval< iterator_range >(), isCompileUnit)) compile_unit_range
Lightweight error class with error context and mandatory checking.
Type
MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...
Error parseMacinfo(DWARFDataExtractor MacroData)