LLVM API Documentation
#include <DwarfUnit.h>
Public Member Functions | |
DwarfTypeUnit (unsigned UID, DwarfCompileUnit &CU, AsmPrinter *A, DwarfDebug *DW, DwarfFile *DWU, MCDwarfDwoLineTable *SplitLineTable=nullptr) | |
void | setTypeSignature (uint64_t Signature) |
uint64_t | getTypeSignature () const |
void | setType (const DIE *Ty) |
void | emitHeader (const MCSymbol *ASectionSym) const override |
Emit the header for this unit, not including the initial length field. | |
unsigned | getHeaderSize () const override |
void | initSection (const MCSection *Section) |
DwarfCompileUnit & | getCU () override |
Protected Member Functions | |
unsigned | getOrCreateSourceID (StringRef File, StringRef Directory) override |
Definition at line 560 of file DwarfUnit.h.
DwarfTypeUnit::DwarfTypeUnit | ( | unsigned | UID, |
DwarfCompileUnit & | CU, | ||
AsmPrinter * | A, | ||
DwarfDebug * | DW, | ||
DwarfFile * | DWU, | ||
MCDwarfDwoLineTable * | SplitLineTable = nullptr |
||
) |
Definition at line 62 of file DwarfUnit.cpp.
References llvm::DwarfUnit::addSectionOffset(), llvm::dwarf::DW_AT_stmt_list, and llvm::DwarfUnit::UnitDie.
void DwarfTypeUnit::emitHeader | ( | const MCSymbol * | ASectionSym | ) | const [override, virtual] |
Emit the header for this unit, not including the initial length field.
Reimplemented from llvm::DwarfUnit.
Definition at line 2088 of file DwarfUnit.cpp.
References llvm::MCStreamer::AddComment(), llvm::DwarfUnit::Asm, llvm::MCStreamer::EmitIntValue(), and llvm::AsmPrinter::OutStreamer.
DwarfCompileUnit& llvm::DwarfTypeUnit::getCU | ( | ) | [inline, override, virtual] |
Implements llvm::DwarfUnit.
Definition at line 587 of file DwarfUnit.h.
Referenced by getOrCreateSourceID().
unsigned llvm::DwarfTypeUnit::getHeaderSize | ( | ) | const [inline, override, virtual] |
Compute the size of a header for this unit, not including the initial length field.
Reimplemented from llvm::DwarfUnit.
Definition at line 578 of file DwarfUnit.h.
unsigned DwarfTypeUnit::getOrCreateSourceID | ( | StringRef | File, |
StringRef | Directory | ||
) | [override, protected, virtual] |
Look up the source ID with the given directory and source file names. If none currently exists, create a new ID and insert it in the line table.
Implements llvm::DwarfUnit.
Definition at line 327 of file DwarfUnit.cpp.
References getCU(), llvm::MCDwarfDwoLineTable::getFile(), and llvm::DwarfCompileUnit::getOrCreateSourceID().
uint64_t llvm::DwarfTypeUnit::getTypeSignature | ( | ) | const [inline] |
Definition at line 573 of file DwarfUnit.h.
Referenced by llvm::DIETypeSignature::EmitValue(), and llvm::DIETypeSignature::print().
void DwarfTypeUnit::initSection | ( | const MCSection * | Section | ) |
Definition at line 2098 of file DwarfUnit.cpp.
References llvm::DwarfUnit::Asm, llvm::MCSection::getLabelBeginName(), llvm::MCSection::getLabelEndName(), llvm::AsmPrinter::GetTempSymbol(), llvm::DwarfUnit::getUniqueID(), llvm::DwarfUnit::LabelBegin, llvm::DwarfUnit::LabelEnd, llvm::DwarfUnit::Section, and llvm::DwarfUnit::SectionSym.
void llvm::DwarfTypeUnit::setType | ( | const DIE * | Ty | ) | [inline] |
Definition at line 574 of file DwarfUnit.h.
void llvm::DwarfTypeUnit::setTypeSignature | ( | uint64_t | Signature | ) | [inline] |
Definition at line 572 of file DwarfUnit.h.