|
LLVM
7.0.0
|
#include "CodeGen/AsmPrinter/DwarfFile.h"
Public Member Functions | |
| DwarfFile (AsmPrinter *AP, StringRef Pref, BumpPtrAllocator &DA) | |
| const SmallVectorImpl< std::unique_ptr< DwarfCompileUnit > > & | getUnits () |
| unsigned | computeSizeAndOffset (DIE &Die, unsigned Offset) |
| Compute the size and offset of a DIE given an incoming Offset. More... | |
| void | computeSizeAndOffsets () |
| Compute the size and offset of all the DIEs. More... | |
| unsigned | computeSizeAndOffsetsForUnit (DwarfUnit *TheU) |
| Compute the size and offset of all the DIEs in the given unit. More... | |
| void | addUnit (std::unique_ptr< DwarfCompileUnit > U) |
| Add a unit to the list of CUs. More... | |
| void | emitUnits (bool UseOffsets) |
| Emit all of the units to the section listed with the given abbreviation section. More... | |
| void | emitUnit (DwarfUnit *U, bool UseOffsets) |
| Emit the given unit to its section. More... | |
| void | emitAbbrevs (MCSection *) |
| Emit a set of abbreviations to the specific section. More... | |
| void | emitStrings (MCSection *StrSection, MCSection *OffsetSection=nullptr, bool UseRelativeOffsets=false) |
| Emit all of the strings to the section given. More... | |
| DwarfStringPool & | getStringPool () |
| Returns the string pool. More... | |
| MCSymbol * | getStringOffsetsStartSym () const |
| void | setStringOffsetsStartSym (MCSymbol *Sym) |
| MCSymbol * | getRnglistsTableBaseSym () const |
| void | setRnglistsTableBaseSym (MCSymbol *Sym) |
| bool | addScopeVariable (LexicalScope *LS, DbgVariable *Var) |
| DenseMap< LexicalScope *, ScopeVars > & | getScopeVariables () |
| DenseMap< const MDNode *, DIE * > & | getAbstractSPDies () |
| DenseMap< const MDNode *, std::unique_ptr< DbgVariable > > & | getAbstractVariables () |
| void | insertDIE (const MDNode *TypeMD, DIE *Die) |
| DIE * | getDIE (const MDNode *TypeMD) |
Definition at line 33 of file DwarfFile.h.
| DwarfFile::DwarfFile | ( | AsmPrinter * | AP, |
| StringRef | Pref, | ||
| BumpPtrAllocator & | DA | ||
| ) |
Definition at line 24 of file DwarfFile.cpp.
| bool DwarfFile::addScopeVariable | ( | LexicalScope * | LS, |
| DbgVariable * | Var | ||
| ) |
Definition at line 85 of file DwarfFile.cpp.
References llvm::DbgVariable::addMMIEntry(), llvm::DILocalVariable::getArg(), llvm::DbgVariable::getVariable(), and llvm::AArch64CC::LS.
Referenced by llvm::DwarfCompileUnit::createAbstractVariable(), llvm::DwarfDebug::endModule(), and setRnglistsTableBaseSym().
| void DwarfFile::addUnit | ( | std::unique_ptr< DwarfCompileUnit > | U | ) |
Add a unit to the list of CUs.
Definition at line 27 of file DwarfFile.cpp.
Referenced by getUnits(), and llvm::DwarfDebug::shareAcrossDWOCUs().
Compute the size and offset of a DIE given an incoming Offset.
Definition at line 73 of file DwarfFile.cpp.
References llvm::DIE::computeOffsetsAndAbbrevs().
Referenced by computeSizeAndOffsetsForUnit(), and getUnits().
| void DwarfFile::computeSizeAndOffsets | ( | ) |
Compute the size and offset of all the DIEs.
Definition at line 49 of file DwarfFile.cpp.
References computeSizeAndOffsetsForUnit().
Referenced by llvm::DwarfDebug::beginModule(), and getUnits().
Compute the size and offset of all the DIEs in the given unit.
Definition at line 61 of file DwarfFile.cpp.
References computeSizeAndOffset(), llvm::DwarfUnit::getHeaderSize(), and llvm::DIEUnit::getUnitDie().
Referenced by computeSizeAndOffsets(), and getUnits().
| void DwarfFile::emitAbbrevs | ( | MCSection * | Section | ) |
Emit a set of abbreviations to the specific section.
Definition at line 77 of file DwarfFile.cpp.
References llvm::DIEAbbrevSet::Emit().
Referenced by llvm::DwarfDebug::endFunctionImpl(), and getUnits().
| void DwarfFile::emitStrings | ( | MCSection * | StrSection, |
| MCSection * | OffsetSection = nullptr, |
||
| bool | UseRelativeOffsets = false |
||
| ) |
Emit all of the strings to the section given.
If OffsetSection is non-null, emit a table of string offsets to it. If UseRelativeOffsets is false, emit absolute offsets to the strings. Otherwise, emit relocatable references to the strings if they are supported by the target.
Definition at line 80 of file DwarfFile.cpp.
References llvm::DwarfStringPool::emit().
Referenced by computeIndexValue(), and getUnits().
Emit the given unit to its section.
Definition at line 38 of file DwarfFile.cpp.
References llvm::AsmPrinter::emitDwarfDIE(), llvm::DwarfUnit::emitHeader(), llvm::DIEUnit::getSection(), llvm::DIEUnit::getUnitDie(), and llvm::AsmPrinter::OutStreamer.
Referenced by emitUnits(), and getUnits().
| void DwarfFile::emitUnits | ( | bool | UseOffsets | ) |
Emit all of the units to the section listed with the given abbreviation section.
Definition at line 33 of file DwarfFile.cpp.
References emitUnit().
Referenced by llvm::DwarfDebug::endFunctionImpl(), and getUnits().
Definition at line 129 of file DwarfFile.h.
Referenced by llvm::DwarfDebug::addSubprogramNames(), and llvm::DwarfUnit::applySubprogramDefinitionAttributes().
|
inline |
Definition at line 133 of file DwarfFile.h.
Definition at line 141 of file DwarfFile.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::lookup().
Referenced by llvm::DwarfUnit::getDIE().
|
inline |
Definition at line 118 of file DwarfFile.h.
Referenced by llvm::DwarfUnit::addRnglistsBase(), and emitRnglistsTableHeader().
|
inline |
Definition at line 125 of file DwarfFile.h.
Referenced by llvm::DwarfCompileUnit::createScopeChildrenDIE(), and llvm::DwarfDebug::endFunctionImpl().
|
inline |
Definition at line 114 of file DwarfFile.h.
Referenced by llvm::DwarfUnit::addStringOffsetsStart(), and llvm::DwarfDebug::endFunctionImpl().
|
inline |
Returns the string pool.
Definition at line 112 of file DwarfFile.h.
Referenced by llvm::DwarfDebug::addDwarfTypeUnitType(), llvm::DwarfUnit::addString(), and llvm::DwarfDebug::endFunctionImpl().
|
inline |
Definition at line 77 of file DwarfFile.h.
References addUnit(), computeSizeAndOffset(), computeSizeAndOffsets(), computeSizeAndOffsetsForUnit(), emitAbbrevs(), emitStrings(), emitUnit(), and emitUnits().
Referenced by llvm::DwarfDebug::endFunctionImpl(), and llvm::DwarfDebug::shareAcrossDWOCUs().
Definition at line 137 of file DwarfFile.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::insert().
Referenced by llvm::DwarfUnit::insertDIE().
|
inline |
Definition at line 120 of file DwarfFile.h.
References addScopeVariable(), and llvm::AArch64CC::LS.
|
inline |
Definition at line 116 of file DwarfFile.h.
1.8.13