LLVM  10.0.0svn
MCXCOFFStreamer.h
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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_MC_MCXCOFFSTREAMER_H
10 #define LLVM_MC_MCXCOFFSTREAMER_H
11 
13 
14 namespace llvm {
15 
17 public:
18  MCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
19  std::unique_ptr<MCObjectWriter> OW,
20  std::unique_ptr<MCCodeEmitter> Emitter);
21 
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 *Symbol, uint64_t Size,
30  unsigned ByteAlign) override;
31 };
32 
33 } // end namespace llvm
34 
35 #endif // LLVM_MC_MCXCOFFSTREAMER_H
Instances of this class represent a uniqued identifier for a section in the current translation unit...
Definition: MCSection.h:39
LLVMContext & Context
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 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
Context object for machine code objects.
Definition: MCContext.h:65
Streaming object file generation interface.
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:158
void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) override
Emit a common symbol.
MCSymbolAttr
Definition: MCDirectives.h:18
Generic base class for all target subtargets.
uint32_t Size
Definition: Profile.cpp:46
MCXCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Represents a location in source code.
Definition: SMLoc.h:23
void EmitXCOFFLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlign) override
Emits an lcomm directive with XCOFF csect information.