17 using namespace dwarf;
18 using namespace syntax;
21 unsigned IndLevel = 0;
22 for (
const Entry &
E : Macros) {
28 for (
unsigned I = 0;
I < IndLevel;
I++)
39 OS <<
" - lineno: " <<
E.Line;
40 OS <<
" macro: " <<
E.MacroStr;
43 OS <<
" - lineno: " <<
E.Line;
44 OS <<
" filenum: " <<
E.File;
49 OS <<
" - constant: " <<
E.ExtConstant;
50 OS <<
" string: " <<
E.ExtStr;
82 E.MacroStr = data.
getCStr(&Offset);
96 E.ExtStr = data.
getCStr(&Offset);
llvm::raw_ostream & get()
void dump(raw_ostream &OS) const
Print the macro list found within the debug_macinfo section.
static GCRegistry::Add< CoreCLRGC > E("coreclr","CoreCLR-compatible GC")
void parse(DataExtractor data)
Parse the debug_macinfo section accessible via the 'data' parameter.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef MacinfoString(unsigned Encoding)
An RAII object that temporarily switches an output stream to a specific color.