|
LLVM
4.0.0
|
#include <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) |
| 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 37 of file DwarfFile.h.
| llvm::DwarfFile::DwarfFile | ( | AsmPrinter * | AP, |
| StringRef | Pref, | ||
| BumpPtrAllocator & | DA | ||
| ) |
Definition at line 21 of file DwarfFile.cpp.
| bool llvm::DwarfFile::addScopeVariable | ( | LexicalScope * | LS, |
| DbgVariable * | Var | ||
| ) |
Definition at line 81 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< DwarfCompileUnit > | U | ) |
Add a unit to the list of CUs.
Definition at line 24 of file DwarfFile.cpp.
Compute the size and offset of a DIE given an incoming Offset.
Definition at line 70 of file DwarfFile.cpp.
References llvm::DIE::computeOffsetsAndAbbrevs().
Referenced by computeSizeAndOffsetsForUnit().
| void llvm::DwarfFile::computeSizeAndOffsets | ( | ) |
Compute the size and offset of all the DIEs.
Definition at line 46 of file DwarfFile.cpp.
References computeSizeAndOffsetsForUnit().
Compute the size and offset of all the DIEs in the given unit.
Definition at line 58 of file DwarfFile.cpp.
References computeSizeAndOffset(), llvm::DwarfUnit::getHeaderSize(), llvm::DIEUnit::getUnitDie(), and Offset.
Referenced by computeSizeAndOffsets().
| void llvm::DwarfFile::emitAbbrevs | ( | MCSection * | Section | ) |
Emit a set of abbreviations to the specific section.
Definition at line 74 of file DwarfFile.cpp.
References llvm::DIEAbbrevSet::Emit().
Emit all of the strings to the section given.
Definition at line 77 of file DwarfFile.cpp.
References llvm::DwarfStringPool::emit().
Emit the given unit to its section.
Definition at line 35 of file DwarfFile.cpp.
References llvm::AsmPrinter::emitDwarfDIE(), llvm::DwarfUnit::emitHeader(), llvm::DIEUnit::getSection(), llvm::DIEUnit::getUnitDie(), and llvm::AsmPrinter::OutStreamer.
Referenced by emitUnits().
| void llvm::DwarfFile::emitUnits | ( | bool | UseOffsets | ) |
Emit all of the units to the section listed with the given abbreviation section.
Definition at line 30 of file DwarfFile.cpp.
References emitUnit().
Definition at line 112 of file DwarfFile.h.
Referenced by llvm::DwarfUnit::getDIE().
|
inline |
Definition at line 101 of file DwarfFile.h.
Referenced by llvm::DwarfCompileUnit::createScopeChildrenDIE(), and llvm::DwarfDebug::endFunction().
|
inline |
Returns the string pool.
Definition at line 96 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 65 of file DwarfFile.h.
Definition at line 109 of file DwarfFile.h.
Referenced by llvm::DwarfUnit::insertDIE().
1.8.6