|
LLVM
3.7.0
|
#include <DwarfFile.h>
Public Member Functions | |
| DwarfFile (AsmPrinter *AP, StringRef Pref, BumpPtrAllocator &DA) | |
| ~DwarfFile () | |
| const SmallVectorImpl < std::unique_ptr< DwarfUnit > > & | 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... | |
| DIEAbbrev & | assignAbbrevNumber (DIE &Die) |
| Define a unique number for the abbreviation. More... | |
| void | addUnit (std::unique_ptr< DwarfUnit > 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 | emitAbbrevs (MCSection *) |
| Emit a set of abbreviations to the specific section. More... | |
| void | emitStrings (MCSection *StrSection, MCSection *OffsetSection=nullptr) |
| Emit all of the strings to the section given. More... | |
| DwarfStringPool & | getStringPool () |
| Returns the string pool. More... | |
| bool | addScopeVariable (LexicalScope *LS, DbgVariable *Var) |
| DenseMap< LexicalScope *, SmallVector< DbgVariable *, 8 > > & | getScopeVariables () |
| DenseMap< const MDNode *, DIE * > & | getAbstractSPDies () |
| void | insertDIE (const MDNode *TypeMD, DIE *Die) |
| DIE * | getDIE (const MDNode *TypeMD) |
Definition at line 36 of file DwarfFile.h.
| llvm::DwarfFile::DwarfFile | ( | AsmPrinter * | AP, |
| StringRef | Pref, | ||
| BumpPtrAllocator & | DA | ||
| ) |
Definition at line 20 of file DwarfFile.cpp.
| llvm::DwarfFile::~DwarfFile | ( | ) |
Definition at line 23 of file DwarfFile.cpp.
| bool llvm::DwarfFile::addScopeVariable | ( | LexicalScope * | LS, |
| DbgVariable * | Var | ||
| ) |
Definition at line 138 of file DwarfFile.cpp.
References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::DILocalVariable::getArg(), llvm::DbgVariable::getVariable(), I, llvm::SmallVectorImpl< T >::insert(), llvm::AArch64CC::LS, and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
| void llvm::DwarfFile::addUnit | ( | std::unique_ptr< DwarfUnit > | U | ) |
Add a unit to the list of CUs.
Definition at line 53 of file DwarfFile.cpp.
Define a unique number for the abbreviation.
Compute the abbreviation for Die, look up its unique number, and return a reference to it in the uniquing table.
Definition at line 30 of file DwarfFile.cpp.
References llvm::DIE::generateAbbrev(), llvm::DIEAbbrev::Profile(), llvm::DIE::setAbbrevNumber(), and llvm::DIEAbbrev::setNumber().
Referenced by computeSizeAndOffset().
Compute the size and offset of a DIE given an incoming Offset.
Definition at line 93 of file DwarfFile.cpp.
References assignAbbrevNumber(), llvm::DIE::children(), llvm::DIE::getAbbrevNumber(), llvm::DIE::getOffset(), llvm::getULEB128Size(), llvm::DIEAbbrev::hasChildren(), llvm::DIE::hasChildren(), llvm::DIE::setOffset(), llvm::DIE::setSize(), and llvm::DIE::values().
Referenced by computeSizeAndOffsets().
| void llvm::DwarfFile::computeSizeAndOffsets | ( | ) |
Compute the size and offset of all the DIEs.
Definition at line 72 of file DwarfFile.cpp.
References computeSizeAndOffset().
| void llvm::DwarfFile::emitAbbrevs | ( | MCSection * | Section | ) |
Emit a set of abbreviations to the specific section.
Definition at line 124 of file DwarfFile.cpp.
References llvm::AsmPrinter::emitDwarfAbbrevs(), and llvm::AsmPrinter::OutStreamer.
Emit all of the strings to the section given.
Definition at line 134 of file DwarfFile.cpp.
References llvm::DwarfStringPool::emit().
| void llvm::DwarfFile::emitUnits | ( | bool | UseOffsets | ) |
Emit all of the units to the section listed with the given abbreviation section.
Definition at line 59 of file DwarfFile.cpp.
References llvm::AsmPrinter::emitDwarfDIE(), and llvm::AsmPrinter::OutStreamer.
Definition at line 113 of file DwarfFile.h.
Referenced by llvm::DwarfUnit::getDIE().
|
inline |
Definition at line 102 of file DwarfFile.h.
Referenced by llvm::DwarfCompileUnit::createScopeChildrenDIE(), and llvm::DwarfDebug::endFunction().
|
inline |
Returns the string pool.
Definition at line 97 of file DwarfFile.h.
Referenced by llvm::DwarfDebug::addAccelName(), llvm::DwarfDebug::addAccelNamespace(), llvm::DwarfDebug::addAccelObjC(), llvm::DwarfDebug::addAccelType(), and llvm::DwarfUnit::addString().
|
inline |
Definition at line 69 of file DwarfFile.h.
Referenced by llvm::DwarfDebug::addDwarfTypeUnitType().
Definition at line 110 of file DwarfFile.h.
Referenced by llvm::DwarfUnit::insertDIE().
1.8.6