10 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H 11 #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H 28 class DwarfCompileUnit;
49 MCSymbol *StringOffsetsStartSym =
nullptr;
53 MCSymbol *RnglistsTableBaseSym =
nullptr;
59 std::map<unsigned, DbgVariable *>
Args;
92 void addUnit(std::unique_ptr<DwarfCompileUnit> U);
109 bool UseRelativeOffsets =
false);
126 return ScopeVariables;
130 return AbstractSPDies;
134 return AbstractVariables;
138 DITypeNodeToDieMap.
insert(std::make_pair(TypeMD, Die));
142 return DITypeNodeToDieMap.
lookup(TypeMD);
148 #endif // LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H Instances of this class represent a uniqued identifier for a section in the current translation unit...
void addUnit(std::unique_ptr< DwarfCompileUnit > U)
Add a unit to the list of CUs.
Compute iterated dominance frontiers using a linear time algorithm.
void setRnglistsTableBaseSym(MCSymbol *Sym)
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
unsigned computeSizeAndOffset(DIE &Die, unsigned Offset)
Compute the size and offset of a DIE given an incoming Offset.
LexicalScope - This class is used to track scope information.
This file defines the MallocAllocator and BumpPtrAllocator interfaces.
std::pair< iterator, bool > insert(const std::pair< KeyT, ValueT > &KV)
MCSymbol * getRnglistsTableBaseSym() const
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
DenseMap< LexicalScope *, ScopeVars > & getScopeVariables()
DenseMap< const MDNode *, DIE * > & getAbstractSPDies()
This class is used to track local variable information.
const SmallVectorImpl< std::unique_ptr< DwarfCompileUnit > > & getUnits()
Helps unique DIEAbbrev objects and assigns abbreviation numbers.
unsigned computeSizeAndOffsetsForUnit(DwarfUnit *TheU)
Compute the size and offset of all the DIEs in the given unit.
MCSymbol * getStringOffsetsStartSym() const
This dwarf writer support class manages information associated with a source file.
DwarfStringPool & getStringPool()
Returns the string pool.
void emitUnit(DwarfUnit *U, bool UseOffsets)
Emit the given unit to its section.
Allocate memory in an ever growing pool, as if by bump-pointer.
A structured debug information entry.
This class is intended to be used as a driving class for all asm writers.
void computeSizeAndOffsets()
Compute the size and offset of all the DIEs.
bool addScopeVariable(LexicalScope *LS, DbgVariable *Var)
DwarfFile(AsmPrinter *AP, StringRef Pref, BumpPtrAllocator &DA)
void insertDIE(const MDNode *TypeMD, DIE *Die)
DenseMap< const MDNode *, std::unique_ptr< DbgVariable > > & getAbstractVariables()
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
DIE * getDIE(const MDNode *TypeMD)
void setStringOffsetsStartSym(MCSymbol *Sym)
void emitStrings(MCSection *StrSection, MCSection *OffsetSection=nullptr, bool UseRelativeOffsets=false)
Emit all of the strings to the section given.
ValueT lookup(const_arg_type_t< KeyT > Val) const
lookup - Return the entry for the specified key, or a default constructed value if no such entry exis...
void emitAbbrevs(MCSection *)
Emit a set of abbreviations to the specific section.
StringRef - Represent a constant reference to a string, i.e.
void emitUnits(bool UseOffsets)
Emit all of the units to the section listed with the given abbreviation section.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.