24 std::unique_ptr<MCAsmBackend> MAB,
25 std::unique_ptr<MCObjectWriter> OW,
26 std::unique_ptr<MCCodeEmitter> Emitter)
28 std::move(Emitter)) {}
32 auto *
Symbol = cast<MCSymbolXCOFF>(Sym);
49 Symbol->
setExternal(cast<MCSymbolXCOFF>(Symbol)->getStorageClass() !=
80 std::unique_ptr<MCAsmBackend> &&MAB,
81 std::unique_ptr<MCObjectWriter> &&OW,
82 std::unique_ptr<MCCodeEmitter> &&CE,
85 std::move(OW), std::move(CE));
Instances of this class represent a uniqued identifier for a section in the current translation unit...
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
This class represents lattice values for constants.
void setCommon(uint64_t Size, unsigned Align, bool Target=false)
Mark this symbol as being 'common'.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
bool EmitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override
Add the given Attribute to Symbol.
A raw_ostream that writes to an SmallVector or SmallString.
void registerSymbol(const MCSymbol &Symbol, bool *Created=nullptr)
void EmitZerofill(MCSection *Section, MCSymbol *Symbol=nullptr, uint64_t Size=0, unsigned ByteAlignment=0, SMLoc Loc=SMLoc()) override
Emit the zerofill section and an optional symbol.
void EmitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override
void setExternal(bool Value) const
MCCodeEmitter & getEmitter() const
MCStreamer * createXCOFFStreamer(MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&CE, bool RelaxAll)
virtual void encodeInstruction(const MCInst &Inst, raw_ostream &OS, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
EncodeInstruction - Encode the given Inst to bytes on the output stream OS.
void setRelaxAll(bool Value)
Context object for machine code objects.
Streaming object file generation interface.
SmallVectorImpl< char > & getContents()
Instances of this class represent a single low-level machine instruction.
void EmitZeros(uint64_t NumBytes)
Emit NumBytes worth of zeros.
Streaming machine code generation interface.
MCAssembler & getAssembler()
void setHasInstructions(const MCSubtargetInfo &STI)
Record that the fragment contains instructions with the MCSubtargetInfo in effect when the instructio...
void EmitXCOFFLocalCommonSymbol(MCSymbol *LabelSym, uint64_t Size, MCSymbol *CsectSym, unsigned ByteAlign) override
Emits an lcomm directive with XCOFF csect information.
static RegisterPass< DebugifyFunctionPass > DF("debugify-function", "Attach debug info to a function")
void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value=0, unsigned ValueSize=1, unsigned MaxBytesToEmit=0) override
Emit some number of copies of Value until the byte alignment ByteAlignment is reached.
void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) override
Emit a common symbol.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
void append(in_iter in_start, in_iter in_end)
Add the specified range to the end of the SmallVector.
MCDataFragment * getOrCreateDataFragment(const MCSubtargetInfo *STI=nullptr)
Get a data fragment to write into, creating a new one if the current fragment is not a data fragment...
Generic base class for all target subtargets.
Fragment for data and encoded instructions.
MCXCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Represents a location in source code.