23 Pool.insert(std::make_pair(Sym, AddressPoolEntry(Pool.size(), TLS)));
24 return IterBool.first->second.Number;
30 uint64_t Length =
sizeof(uint16_t)
33 + AddrSize * Pool.size();
34 Asm.
OutStreamer->AddComment(
"Length of contribution");
36 Asm.
OutStreamer->AddComment(
"DWARF version number");
40 Asm.
OutStreamer->AddComment(
"Segment selector size");
53 emitHeader(Asm, AddrSection);
62 for (
const auto &
I : Pool)
63 Entries[
I.second.Number] =
68 for (
const MCExpr *Entry : Entries)
const TargetLoweringObjectFile & getObjFileLowering() const
Return information about object file lowering.
Instances of this class represent a uniqued identifier for a section in the current translation unit...
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
This class represents lattice values for constants.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
MCContext & OutContext
This is the context for the output file that we are streaming.
uint16_t getDwarfVersion() const
Base class for the full range of assembler expressions which are needed for parsing.
void emit(AsmPrinter &Asm, MCSection *AddrSection)
unsigned getPointerSize(unsigned AS=0) const
Layout pointer size FIXME: The defaults need to be removed once all of the backends/clients are updat...
This class is intended to be used as a driving class for all asm writers.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
void emitInt32(int Value) const
Emit a long directive and value.
void emitInt8(int Value) const
Emit a byte directive and value.
const DataLayout & getDataLayout() const
Return information about data layout.
virtual const MCExpr * getDebugThreadLocalSymbol(const MCSymbol *Sym) const
Create a symbol reference to describe the given TLS variable when emitting the address in debug info...
void emitInt16(int Value) const
Emit a short directive and value.
unsigned getIndex(const MCSymbol *Sym, bool TLS=false)
Returns the index into the address pool with the given label/symbol.