LLVM 20.0.0git
|
Helps unique DIEAbbrev objects and assigns abbreviation numbers. More...
#include "llvm/CodeGen/DIE.h"
Public Member Functions | |
DIEAbbrevSet (BumpPtrAllocator &A) | |
~DIEAbbrevSet () | |
DIEAbbrev & | uniqueAbbreviation (DIE &Die) |
Generate the abbreviation declaration for a DIE and return a pointer to the generated abbreviation. | |
void | Emit (const AsmPrinter *AP, MCSection *Section) const |
Print all abbreviations using the specified asm printer. | |
Helps unique DIEAbbrev objects and assigns abbreviation numbers.
This class will unique the DIE abbreviations for a llvm::DIE object and assign a unique abbreviation number to each unique DIEAbbrev object it finds. The resulting collection of DIEAbbrev objects can then be emitted into the .debug_abbrev section.
|
inline |
void DIEAbbrevSet::Emit | ( | const AsmPrinter * | AP, |
MCSection * | Section | ||
) | const |
Print all abbreviations using the specified asm printer.
Definition at line 160 of file DIE.cpp.
References llvm::AsmPrinter::emitDwarfAbbrevs(), and llvm::AsmPrinter::OutStreamer.
Referenced by llvm::DwarfFile::emitAbbrevs().
Generate the abbreviation declaration for a DIE and return a pointer to the generated abbreviation.
Die | the debug info entry to generate the abbreviation for. |
Definition at line 136 of file DIE.cpp.
References llvm::DIE::generateAbbrev(), llvm::DIEAbbrev::Profile(), and llvm::DIE::setAbbrevNumber().
Referenced by llvm::DIE::computeOffsetsAndAbbrevs().