9 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H 10 #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H 29 class DwarfCompileUnit;
68 MCSymbol *StringOffsetsStartSym =
nullptr;
72 MCSymbol *RnglistsTableBaseSym =
nullptr;
78 std::map<unsigned, DbgVariable *>
Args;
113 unsigned computeSizeAndOffset(
DIE &Die,
unsigned Offset);
116 void computeSizeAndOffsets();
120 unsigned computeSizeAndOffsetsForUnit(
DwarfUnit *TheU);
123 void addUnit(std::unique_ptr<DwarfCompileUnit> U);
127 void emitUnits(
bool UseOffsets);
130 void emitUnit(
DwarfUnit *TheU,
bool UseOffsets);
140 bool UseRelativeOffsets =
false);
157 return ScopeVariables;
165 return AbstractSPDies;
169 return AbstractEntities;
173 DITypeNodeToDieMap.
insert(std::make_pair(TypeMD, Die));
177 return DITypeNodeToDieMap.
lookup(TypeMD);
183 #endif // LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H Instances of this class represent a uniqued identifier for a section in the current translation unit...
This class represents lattice values for constants.
void setRnglistsTableBaseSym(MCSymbol *Sym)
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
const SmallVectorImpl< RangeSpanList > & getRangeLists() const
getRangeLists - Get the vector of range lists.
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.
const DwarfCompileUnit * CU
This class is used to track label information.
MCSymbol * getStringOffsetsStartSym() const
This dwarf writer support class manages information associated with a source file.
DwarfStringPool & getStringPool()
Returns the string pool.
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.
DenseMap< const DINode *, std::unique_ptr< DbgEntity > > & getAbstractEntities()
void insertDIE(const MDNode *TypeMD, DIE *Die)
DenseMap< LexicalScope *, LabelList > & getScopeLabels()
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)
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...
SmallVector< RangeSpan, 2 > Ranges
StringRef - Represent a constant reference to a string, i.e.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.