10 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H 11 #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H 30 class DwarfCompileUnit;
58 : RangeSym(Sym), CU(&CU), Ranges(
std::move(Ranges)) {}
85 MCSymbol *StringOffsetsStartSym =
nullptr;
89 MCSymbol *RnglistsTableBaseSym =
nullptr;
93 MCSymbol *LoclistsTableBaseSym =
nullptr;
99 std::map<unsigned, DbgVariable *>
Args;
134 unsigned computeSizeAndOffset(
DIE &Die,
unsigned Offset);
137 void computeSizeAndOffsets();
141 unsigned computeSizeAndOffsetsForUnit(
DwarfUnit *TheU);
144 void addUnit(std::unique_ptr<DwarfCompileUnit> U);
148 void emitUnits(
bool UseOffsets);
151 void emitUnit(
DwarfUnit *U,
bool UseOffsets);
161 bool UseRelativeOffsets =
false);
181 return ScopeVariables;
189 return AbstractSPDies;
193 return AbstractEntities;
197 DITypeNodeToDieMap.
insert(std::make_pair(TypeMD, Die));
201 return DITypeNodeToDieMap.
lookup(TypeMD);
207 #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.
void push_back(const T &Elt)
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
MCSymbol * getLoclistsTableBaseSym() const
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
DenseMap< LexicalScope *, ScopeVars > & getScopeVariables()
const SmallVectorImpl< RangeSpan > & getRanges() const
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.
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.
MCSymbol * getSym() const
Allocate memory in an ever growing pool, as if by bump-pointer.
RangeSpanList(MCSymbol *Sym, const DwarfCompileUnit &CU, SmallVector< RangeSpan, 2 > Ranges)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
A structured debug information entry.
This class is intended to be used as a driving class for all asm writers.
void setEnd(const MCSymbol *E)
DenseMap< const DINode *, std::unique_ptr< DbgEntity > > & getAbstractEntities()
const DwarfCompileUnit & getCU() const
const MCSymbol * getStart() const
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...
void setLoclistsTableBaseSym(MCSymbol *Sym)
RangeSpan(MCSymbol *S, MCSymbol *E)
DIE * getDIE(const MDNode *TypeMD)
void setStringOffsetsStartSym(MCSymbol *Sym)
void addRange(RangeSpan Range)
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...
const MCSymbol * getEnd() const
StringRef - Represent a constant reference to a string, i.e.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.