LLVM  12.0.0git
Go to the documentation of this file.
1 //===- MCXCOFFObjectStreamer.h - MCStreamer XCOFF Object File Interface ---===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
14 namespace llvm {
17 public:
18  MCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
19  std::unique_ptr<MCObjectWriter> OW,
20  std::unique_ptr<MCCodeEmitter> Emitter);
23  void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
24  unsigned ByteAlignment) override;
25  void emitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
26  uint64_t Size = 0, unsigned ByteAlignment = 0,
27  SMLoc Loc = SMLoc()) override;
28  void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override;
29  void emitXCOFFLocalCommonSymbol(MCSymbol *LabelSym, uint64_t Size,
30  MCSymbol *CsectSym,
31  unsigned ByteAlign) override;
34  MCSymbolAttr Visibility) override;
36  StringRef Rename) override {
37  report_fatal_error("emitXCOFFRenameDirective is not implemented yet on "
38  "object generation path");
39  }
40 };
42 } // end namespace llvm
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
LLVMContext & Context
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
Definition: Error.cpp:140
This class represents lattice values for constants.
Definition: AllocatorList.h:23
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override
Add the given Attribute to Symbol.
void emitXCOFFLocalCommonSymbol(MCSymbol *LabelSym, uint64_t Size, MCSymbol *CsectSym, unsigned ByteAlign) override
Emits an lcomm directive with XCOFF csect information.
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.
Context object for machine code objects.
Definition: MCContext.h:68
Streaming object file generation interface.
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:158
void emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol, MCSymbolAttr Linkage, MCSymbolAttr Visibility) override
Emit a symbol's linkage and visibilty with a linkage directive for XCOFF.
Definition: MCDirectives.h:18
void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) override
Emit a common symbol.
Generic base class for all target subtargets.
void emitXCOFFRenameDirective(const MCSymbol *Name, StringRef Rename) override
Emit a XCOFF .rename directive which creates a synonym for an illegal or undesirable name.
MCXCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:57
Represents a location in source code.
Definition: SMLoc.h:23
void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override