LLVM 20.0.0git
|
Dwarf abbreviation, describes the organization of a debug information object. More...
#include "llvm/CodeGen/DIE.h"
Public Member Functions | |
DIEAbbrev (dwarf::Tag T, bool C) | |
void | AddAttribute (dwarf::Attribute Attribute, dwarf::Form Form) |
Adds another set of attribute information to the abbreviation. | |
void | AddImplicitConstAttribute (dwarf::Attribute Attribute, int64_t Value) |
Adds attribute with DW_FORM_implicit_const value. | |
void | AddAttribute (const DIEAbbrevData &AbbrevData) |
Adds another set of attribute information to the abbreviation. | |
void | Profile (FoldingSetNodeID &ID) const |
Used to gather unique data for the abbreviation folding set. | |
void | Emit (const AsmPrinter *AP) const |
Print the abbreviation using the specified asm printer. | |
void | print (raw_ostream &O) const |
void | dump () const |
dwarf::Tag | getTag () const |
Accessors. | |
unsigned | getNumber () const |
bool | hasChildren () const |
const SmallVectorImpl< DIEAbbrevData > & | getData () const |
void | setChildrenFlag (bool hasChild) |
void | setNumber (unsigned N) |
Public Member Functions inherited from llvm::FoldingSetBase::Node | |
Node ()=default | |
void * | getNextInBucket () const |
void | SetNextInBucket (void *N) |
Dwarf abbreviation, describes the organization of a debug information object.
|
inline |
|
inline |
|
inline |
Adds another set of attribute information to the abbreviation.
Definition at line 109 of file DIE.h.
Referenced by llvm::DIE::generateAbbrev().
|
inline |
Adds attribute with DW_FORM_implicit_const value.
Definition at line 114 of file DIE.h.
Referenced by llvm::DIE::generateAbbrev().
LLVM_DUMP_METHOD void DIEAbbrev::dump | ( | ) | const |
Definition at line 122 of file DIE.cpp.
References llvm::dbgs(), and print().
void DIEAbbrev::Emit | ( | const AsmPrinter * | AP | ) | const |
Print the abbreviation using the specified asm printer.
Emit - Print the abbreviation using the specified asm printer.
Definition at line 62 of file DIE.cpp.
References llvm::dwarf::AttributeString(), llvm::dwarf::ChildrenString(), llvm::StringRef::data(), llvm::dbgs(), llvm::AsmPrinter::emitSLEB128(), llvm::AsmPrinter::emitULEB128(), llvm::format(), llvm::dwarf::FormEncodingString(), llvm::AsmPrinter::getDwarfVersion(), llvm::dwarf::isValidFormForVersion(), LLVM_DEBUG, llvm_unreachable, and llvm::dwarf::TagString().
Referenced by llvm::AsmPrinter::emitDwarfAbbrev().
|
inline |
Definition at line 103 of file DIE.h.
Referenced by llvm::dwarf_linker::parallel::DwarfUnit::assignAbbrev(), and llvm::dwarf_linker::parallel::DwarfUnit::emitDwarfAbbrevEntry().
|
inline |
Definition at line 101 of file DIE.h.
References Number.
Referenced by llvm::dwarf_linker::parallel::DwarfUnit::assignAbbrev(), llvm::AsmPrinter::emitDwarfAbbrev(), llvm::dwarf_linker::parallel::DwarfUnit::emitDwarfAbbrevEntry(), and llvm::dwarf_linker::parallel::DIEGenerator::finalizeAbbreviations().
|
inline |
Accessors.
Definition at line 100 of file DIE.h.
Referenced by llvm::dwarf_linker::parallel::DwarfUnit::assignAbbrev(), and llvm::dwarf_linker::parallel::DwarfUnit::emitDwarfAbbrevEntry().
|
inline |
Definition at line 102 of file DIE.h.
Referenced by llvm::dwarf_linker::parallel::DwarfUnit::assignAbbrev(), llvm::DIE::computeOffsetsAndAbbrevs(), and llvm::dwarf_linker::parallel::DwarfUnit::emitDwarfAbbrevEntry().
LLVM_DUMP_METHOD void DIEAbbrev::print | ( | raw_ostream & | O | ) | const |
Definition at line 101 of file DIE.cpp.
References llvm::dwarf::AttributeString(), llvm::dwarf::ChildrenString(), D, llvm::format(), llvm::dwarf::FormEncodingString(), and llvm::dwarf::TagString().
Referenced by dump().
void DIEAbbrev::Profile | ( | FoldingSetNodeID & | ID | ) | const |
Used to gather unique data for the abbreviation folding set.
Profile - Used to gather unique data for the abbreviation folding set.
Definition at line 51 of file DIE.cpp.
References D.
Referenced by llvm::dwarf_linker::parallel::DwarfUnit::assignAbbrev(), and llvm::DIEAbbrevSet::uniqueAbbreviation().
|
inline |
Definition at line 104 of file DIE.h.
Referenced by llvm::dwarf_linker::parallel::DIEGenerator::finalizeAbbreviations().
|
inline |
Definition at line 105 of file DIE.h.
Referenced by llvm::dwarf_linker::parallel::DwarfUnit::assignAbbrev().