LLVM  3.7.0
Classes | Public Member Functions | List of all members
llvm::MCELFStreamer Class Reference

#include <MCELFStreamer.h>

Inheritance diagram for llvm::MCELFStreamer:
[legend]
Collaboration diagram for llvm::MCELFStreamer:
[legend]

Public Member Functions

 MCELFStreamer (MCContext &Context, MCAsmBackend &TAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter)
 
 ~MCELFStreamer () override
 
void reset () override
 state management More...
 
- Public Member Functions inherited from llvm::MCObjectStreamer
void reset () override
 state management More...
 
bool isIntegratedAssemblerRequired () const override
 Object streamers require the integrated assembler. More...
 
void EmitFrames (MCAsmBackend *MAB)
 
void EmitCFISections (bool EH, bool Debug) override
 
void visitUsedSymbol (const MCSymbol &Sym) override
 
MCAssemblergetAssembler ()
 
void EmitLabel (MCSymbol *Symbol) override
 Emit a label for Symbol into the current section. More...
 
void EmitAssignment (MCSymbol *Symbol, const MCExpr *Value) override
 Emit an assignment of Value to Symbol. More...
 
void EmitValueImpl (const MCExpr *Value, unsigned Size, const SMLoc &Loc=SMLoc()) override
 Emit the expression Value into the output as a native integer of the given Size bytes. More...
 
void EmitULEB128Value (const MCExpr *Value) override
 
void EmitSLEB128Value (const MCExpr *Value) override
 
void EmitWeakReference (MCSymbol *Alias, const MCSymbol *Symbol) override
 Emit an weak reference from Alias to Symbol. More...
 
void ChangeSection (MCSection *Section, const MCExpr *Subsection) override
 Update streamer for a new active section. More...
 
void EmitInstruction (const MCInst &Inst, const MCSubtargetInfo &STI) override
 Emit the given Instruction into the current section. More...
 
void EmitBundleAlignMode (unsigned AlignPow2) override
 Set the bundle alignment mode from now on in the section. More...
 
void EmitBundleLock (bool AlignToEnd) override
 The following instructions are a bundle-locked group. More...
 
void EmitBundleUnlock () override
 Ends a bundle-locked group. More...
 
void EmitBytes (StringRef Data) override
 Emit the bytes in Data into the output. More...
 
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. More...
 
void EmitCodeAlignment (unsigned ByteAlignment, unsigned MaxBytesToEmit=0) override
 Emit nops until the byte alignment ByteAlignment is reached. More...
 
bool EmitValueToOffset (const MCExpr *Offset, unsigned char Value) override
 Emit some number of copies of Value until the byte offset Offset is reached. More...
 
void EmitDwarfLocDirective (unsigned FileNo, unsigned Line, unsigned Column, unsigned Flags, unsigned Isa, unsigned Discriminator, StringRef FileName) override
 This implements the DWARF2 '.loc fileno lineno ...' assembler directive. More...
 
void EmitDwarfAdvanceLineAddr (int64_t LineDelta, const MCSymbol *LastLabel, const MCSymbol *Label, unsigned PointerSize)
 
void EmitDwarfAdvanceFrameAddr (const MCSymbol *LastLabel, const MCSymbol *Label)
 
void EmitGPRel32Value (const MCExpr *Value) override
 Emit the expression Value into the output as a gprel32 (32-bit GP relative) value. More...
 
void EmitGPRel64Value (const MCExpr *Value) override
 Emit the expression Value into the output as a gprel64 (64-bit GP relative) value. More...
 
void EmitFill (uint64_t NumBytes, uint8_t FillValue) override
 Emit NumBytes bytes worth of the value specified by FillValue. More...
 
void EmitZeros (uint64_t NumBytes) override
 Emit NumBytes worth of zeros. More...
 
void FinishImpl () override
 Streamer specific finalization. More...
 
void emitAbsoluteSymbolDiff (const MCSymbol *Hi, const MCSymbol *Lo, unsigned Size) override
 Emit the absolute difference between two symbols if possible. More...
 
bool mayHaveInstructions (MCSection &Sec) const override
 
- Public Member Functions inherited from llvm::MCStreamer
virtual ~MCStreamer ()
 
void visitUsedExpr (const MCExpr &Expr)
 
void setTargetStreamer (MCTargetStreamer *TS)
 
MCContextgetContext () const
 
MCTargetStreamergetTargetStreamer ()
 
unsigned getNumFrameInfos ()
 
ArrayRef< MCDwarfFrameInfogetDwarfFrameInfos () const
 
unsigned getNumWinFrameInfos ()
 
ArrayRef< WinEH::FrameInfo * > getWinFrameInfos () const
 
void generateCompactUnwindEncodings (MCAsmBackend *MAB)
 
virtual unsigned EmitDwarfFileDirective (unsigned FileNo, StringRef Directory, StringRef Filename, unsigned CUID=0)
 Associate a filename with a specified logical file number. More...
 
virtual MCSymbolgetDwarfLineTableSymbol (unsigned CUID)
 
void EmitCFIStartProc (bool IsSimple)
 
void EmitCFIEndProc ()
 
virtual void EmitCFIDefCfa (int64_t Register, int64_t Offset)
 
virtual void EmitCFIDefCfaOffset (int64_t Offset)
 
virtual void EmitCFIDefCfaRegister (int64_t Register)
 
virtual void EmitCFIOffset (int64_t Register, int64_t Offset)
 
virtual void EmitCFIPersonality (const MCSymbol *Sym, unsigned Encoding)
 
virtual void EmitCFILsda (const MCSymbol *Sym, unsigned Encoding)
 
virtual void EmitCFIRememberState ()
 
virtual void EmitCFIRestoreState ()
 
virtual void EmitCFISameValue (int64_t Register)
 
virtual void EmitCFIRestore (int64_t Register)
 
virtual void EmitCFIRelOffset (int64_t Register, int64_t Offset)
 
virtual void EmitCFIAdjustCfaOffset (int64_t Adjustment)
 
virtual void EmitCFIEscape (StringRef Values)
 
virtual void EmitCFISignalFrame ()
 
virtual void EmitCFIUndefined (int64_t Register)
 
virtual void EmitCFIRegister (int64_t Register1, int64_t Register2)
 
virtual void EmitCFIWindowSave ()
 
virtual void EmitWinCFIStartProc (const MCSymbol *Symbol)
 
virtual void EmitWinCFIEndProc ()
 
virtual void EmitWinCFIStartChained ()
 
virtual void EmitWinCFIEndChained ()
 
virtual void EmitWinCFIPushReg (unsigned Register)
 
virtual void EmitWinCFISetFrame (unsigned Register, unsigned Offset)
 
virtual void EmitWinCFIAllocStack (unsigned Size)
 
virtual void EmitWinCFISaveReg (unsigned Register, unsigned Offset)
 
virtual void EmitWinCFISaveXMM (unsigned Register, unsigned Offset)
 
virtual void EmitWinCFIPushFrame (bool Code)
 
virtual void EmitWinCFIEndProlog ()
 
virtual void EmitWinEHHandler (const MCSymbol *Sym, bool Unwind, bool Except)
 
virtual void EmitWinEHHandlerData ()
 
void EmitRawText (const Twine &String)
 If this file is backed by a assembly streamer, this dumps the specified string in the output .s file. More...
 
void Finish ()
 Finish emission of machine code. More...
 
virtual bool isVerboseAsm () const
 Return true if this streamer supports verbose assembly and if it is enabled. More...
 
virtual bool hasRawTextSupport () const
 Return true if this asm streamer supports emitting unformatted text to the .s file with EmitRawText. More...
 
virtual void AddComment (const Twine &T)
 Add a textual command. More...
 
virtual raw_ostreamGetCommentOS ()
 Return a raw_ostream that comments can be written to. More...
 
virtual void emitRawComment (const Twine &T, bool TabPrefix=true)
 Print T and prefix it with the comment string (normally #) and optionally a tab. More...
 
virtual void AddBlankLine ()
 AddBlankLine - Emit a blank line to a .s file to pretty it up. More...
 
MCSectionSubPair getCurrentSection () const
 Return the current section that the streamer is emitting code to. More...
 
MCSectiongetCurrentSectionOnly () const
 
MCSectionSubPair getPreviousSection () const
 Return the previous section that the streamer is emitting code to. More...
 
unsigned GetSymbolOrder (const MCSymbol *Sym) const
 Returns an index to represent the order a symbol was emitted in. More...
 
void PushSection ()
 Save the current and previous section on the section stack. More...
 
bool PopSection ()
 Restore the current and previous section from the section stack. More...
 
bool SubSection (const MCExpr *Subsection)
 
virtual void SwitchSection (MCSection *Section, const MCExpr *Subsection=nullptr)
 Set the current section where code is being emitted to Section. More...
 
void SwitchSectionNoChange (MCSection *Section, const MCExpr *Subsection=nullptr)
 Set the current section where code is being emitted to Section. More...
 
MCSymbolendSection (MCSection *Section)
 
void AssignSection (MCSymbol *Symbol, MCSection *Section)
 Sets the symbol's section. More...
 
virtual void EmitEHSymAttributes (const MCSymbol *Symbol, MCSymbol *EHSymbol)
 
virtual void EmitLinkerOptions (ArrayRef< std::string > Kind)
 Emit the given list Options of strings as linker options into the output. More...
 
virtual void EmitDataRegion (MCDataRegionType Kind)
 Note in the output the specified region Kind. More...
 
virtual void EmitVersionMin (MCVersionMinType, unsigned Major, unsigned Minor, unsigned Update)
 Specify the MachO minimum deployment target version. More...
 
virtual void EmitCOFFSafeSEH (MCSymbol const *Symbol)
 
virtual void EmitCOFFSectionIndex (MCSymbol const *Symbol)
 Emits a COFF section index. More...
 
virtual void EmitCOFFSecRel32 (MCSymbol const *Symbol)
 Emits a COFF section relative relocation. More...
 
virtual void EmitLOHDirective (MCLOHType Kind, const MCLOHArgs &Args)
 Emit a Linker Optimization Hint (LOH) directive. More...
 
void EmitValue (const MCExpr *Value, unsigned Size, const SMLoc &Loc=SMLoc())
 
virtual void EmitIntValue (uint64_t Value, unsigned Size)
 Special case of EmitValue that avoids the client having to pass in a MCExpr for constant integers. More...
 
void EmitULEB128IntValue (uint64_t Value, unsigned Padding=0)
 Special case of EmitULEB128Value that avoids the client having to pass in a MCExpr for constant integers. More...
 
void EmitSLEB128IntValue (int64_t Value)
 Special case of EmitSLEB128Value that avoids the client having to pass in a MCExpr for constant integers. More...
 
void EmitSymbolValue (const MCSymbol *Sym, unsigned Size, bool IsSectionRelative=false)
 Special case of EmitValue that avoids the client having to pass in a MCExpr for MCSymbols. More...
 

MCStreamer Interface

void InitSections (bool NoExecStack) override
 Create the default sections and set the initial one. More...
 
void ChangeSection (MCSection *Section, const MCExpr *Subsection) override
 Update streamer for a new active section. More...
 
void EmitLabel (MCSymbol *Symbol) override
 Emit a label for Symbol into the current section. More...
 
void EmitAssemblerFlag (MCAssemblerFlag Flag) override
 Note in the output the specified Flag. More...
 
void EmitThumbFunc (MCSymbol *Func) override
 Note in the output that the specified Func is a Thumb mode function (ARM target only). More...
 
void EmitWeakReference (MCSymbol *Alias, const MCSymbol *Symbol) override
 Emit an weak reference from Alias to Symbol. More...
 
bool EmitSymbolAttribute (MCSymbol *Symbol, MCSymbolAttr Attribute) override
 Add the given Attribute to Symbol. More...
 
void EmitSymbolDesc (MCSymbol *Symbol, unsigned DescValue) override
 Set the DescValue for the Symbol. More...
 
void EmitCommonSymbol (MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) override
 Emit a common symbol. More...
 
void BeginCOFFSymbolDef (const MCSymbol *Symbol) override
 Start emitting COFF symbol definition. More...
 
void EmitCOFFSymbolStorageClass (int StorageClass) override
 Emit the storage class of the symbol. More...
 
void EmitCOFFSymbolType (int Type) override
 Emit the type of the symbol. More...
 
void EndCOFFSymbolDef () override
 Marks the end of the symbol definition. More...
 
void emitELFSize (MCSymbolELF *Symbol, const MCExpr *Value) override
 Emit an ELF .size directive. More...
 
void EmitLocalCommonSymbol (MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) override
 Emit a local common (.lcomm) symbol. More...
 
void EmitZerofill (MCSection *Section, MCSymbol *Symbol=nullptr, uint64_t Size=0, unsigned ByteAlignment=0) override
 Emit the zerofill section and an optional symbol. More...
 
void EmitTBSSSymbol (MCSection *Section, MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment=0) override
 Emit a thread local bss (.tbss) symbol. More...
 
void EmitValueImpl (const MCExpr *Value, unsigned Size, const SMLoc &Loc=SMLoc()) override
 Emit the expression Value into the output as a native integer of the given Size bytes. More...
 
void EmitFileDirective (StringRef Filename) override
 Switch to a new logical file. More...
 
void EmitIdent (StringRef IdentString) override
 Emit the "identifiers" directive. More...
 
void EmitValueToAlignment (unsigned, int64_t, unsigned, unsigned) override
 Emit some number of copies of Value until the byte alignment ByteAlignment is reached. More...
 
void Flush () override
 Causes any cached state to be written out. More...
 
void FinishImpl () override
 Streamer specific finalization. More...
 
void EmitBundleAlignMode (unsigned AlignPow2) override
 Set the bundle alignment mode from now on in the section. More...
 
void EmitBundleLock (bool AlignToEnd) override
 The following instructions are a bundle-locked group. More...
 
void EmitBundleUnlock () override
 Ends a bundle-locked group. More...
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::MCObjectStreamer
 MCObjectStreamer (MCContext &Context, MCAsmBackend &TAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter)
 
 ~MCObjectStreamer () override
 
MCFragmentgetCurrentFragment () const
 
void insert (MCFragment *F)
 
MCDataFragmentgetOrCreateDataFragment ()
 Get a data fragment to write into, creating a new one if the current fragment is not a data fragment. More...
 
bool changeSectionImpl (MCSection *Section, const MCExpr *Subsection)
 
void flushPendingLabels (MCFragment *F, uint64_t FOffset=0)
 If any labels have been emitted but not assigned fragments, ensure that they get assigned, either to F if possible or to a new data fragment. More...
 
- Protected Member Functions inherited from llvm::MCStreamer
 MCStreamer (MCContext &Ctx)
 
WinEH::FrameInfogetCurrentWinFrameInfo ()
 
virtual void EmitWindowsUnwindTables ()
 
virtual void EmitRawTextImpl (StringRef String)
 EmitRawText - If this file is backed by an assembly streamer, this dumps the specified string in the output .s file. More...
 

Detailed Description

Definition at line 28 of file MCELFStreamer.h.

Constructor & Destructor Documentation

llvm::MCELFStreamer::MCELFStreamer ( MCContext Context,
MCAsmBackend TAB,
raw_pwrite_stream OS,
MCCodeEmitter Emitter 
)
inline

Definition at line 30 of file MCELFStreamer.h.

MCELFStreamer::~MCELFStreamer ( )
override

Definition at line 44 of file MCELFStreamer.cpp.

Member Function Documentation

void MCELFStreamer::BeginCOFFSymbolDef ( const MCSymbol Symbol)
overridevirtual

Start emitting COFF symbol definition.

Parameters
Symbol- The symbol to have its External & Type fields set.

Reimplemented from llvm::MCStreamer.

Definition at line 680 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::ChangeSection ( MCSection ,
const MCExpr  
)
overridevirtual
void MCELFStreamer::EmitAssemblerFlag ( MCAssemblerFlag  Flag)
overridevirtual
void MCELFStreamer::EmitBundleAlignMode ( unsigned  AlignPow2)
overridevirtual

Set the bundle alignment mode from now on in the section.

The argument is the power of 2 to which the alignment is set. The value 0 means turn the bundle alignment off.

Reimplemented from llvm::MCStreamer.

Definition at line 563 of file MCELFStreamer.cpp.

References llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getBundleAlignSize(), llvm::report_fatal_error(), and llvm::MCAssembler::setBundleAlignSize().

void MCELFStreamer::EmitBundleLock ( bool  AlignToEnd)
overridevirtual

The following instructions are a bundle-locked group.

Parameters
AlignToEnd- If true, the bundle-locked group will be aligned to the end of a bundle.

Reimplemented from llvm::MCStreamer.

Definition at line 573 of file MCELFStreamer.cpp.

References llvm::MCSection::BundleLocked, llvm::MCSection::BundleLockedAlignToEnd, llvm::MCObjectStreamer::getAssembler(), llvm::MCStreamer::getCurrentSectionOnly(), llvm::report_fatal_error(), llvm::MCSection::setBundleGroupBeforeFirstInst(), and llvm::MCSection::setBundleLockState().

void MCELFStreamer::EmitBundleUnlock ( )
overridevirtual
void MCELFStreamer::EmitCOFFSymbolStorageClass ( int  StorageClass)
overridevirtual

Emit the storage class of the symbol.

Parameters
StorageClass- The storage class the symbol should have.

Reimplemented from llvm::MCStreamer.

Definition at line 684 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::EmitCOFFSymbolType ( int  Type)
overridevirtual

Emit the type of the symbol.

Parameters
Type- A COFF type identifier (see COFF::SymbolType in X86COFF.h)

Reimplemented from llvm::MCStreamer.

Definition at line 688 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::EmitCommonSymbol ( MCSymbol Symbol,
uint64_t  Size,
unsigned  ByteAlignment 
)
overridevirtual
void MCELFStreamer::emitELFSize ( MCSymbolELF Symbol,
const MCExpr Value 
)
overridevirtual

Emit an ELF .size directive.

This corresponds to an assembler statement such as: .size symbol, expression

Reimplemented from llvm::MCStreamer.

Definition at line 332 of file MCELFStreamer.cpp.

References llvm::MCSymbolELF::setSize().

void MCELFStreamer::EmitFileDirective ( StringRef  Filename)
overridevirtual

Switch to a new logical file.

This is used to implement the '.file "foo.c"' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 367 of file MCELFStreamer.cpp.

References llvm::MCAssembler::addFileName(), and llvm::MCObjectStreamer::getAssembler().

void MCELFStreamer::EmitIdent ( StringRef  IdentString)
overridevirtual
void MCELFStreamer::EmitLabel ( MCSymbol Symbol)
overridevirtual

Emit a label for Symbol into the current section.

This corresponds to an assembler statement such as: foo:

Parameters
Symbol- The symbol to emit. A given symbol should only be emitted as a label once, and symbols emitted as a label should never be used in an assignment.

Reimplemented from llvm::MCStreamer.

Reimplemented in llvm::MipsELFStreamer.

Definition at line 108 of file MCELFStreamer.cpp.

References llvm::MCObjectStreamer::EmitLabel(), llvm::MCSectionELF::getFlags(), llvm::ARMBuildAttrs::Section, llvm::ELF::SHF_TLS, llvm::ELF::STT_TLS, and llvm::ARMBuildAttrs::Symbol.

Referenced by llvm::MipsELFStreamer::EmitLabel().

void MCELFStreamer::EmitLocalCommonSymbol ( MCSymbol Symbol,
uint64_t  Size,
unsigned  ByteAlignment 
)
overridevirtual

Emit a local common (.lcomm) symbol.

Parameters
Symbol- The common symbol to emit.
Size- The size of the common symbol.
ByteAlignment- The alignment of the common symbol in bytes.

Reimplemented from llvm::MCStreamer.

Definition at line 336 of file MCELFStreamer.cpp.

References EmitCommonSymbol(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::registerSymbol(), llvm::ELF::STB_LOCAL, and llvm::ARMBuildAttrs::Symbol.

bool MCELFStreamer::EmitSymbolAttribute ( MCSymbol Symbol,
MCSymbolAttr  Attribute 
)
overridevirtual
void MCELFStreamer::EmitSymbolDesc ( MCSymbol Symbol,
unsigned  DescValue 
)
overridevirtual

Set the DescValue for the Symbol.

Parameters
Symbol- The symbol to have its n_desc field set.
DescValue- The value to set into the n_desc field.

Reimplemented from llvm::MCStreamer.

Definition at line 676 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::EmitTBSSSymbol ( MCSection Section,
MCSymbol Symbol,
uint64_t  Size,
unsigned  ByteAlignment = 0 
)
overridevirtual

Emit a thread local bss (.tbss) symbol.

Parameters
Section- The thread local common section.
Symbol- The thread local common symbol to emit.
Size- The size of the symbol.
ByteAlignment- The alignment of the thread local common symbol if non-zero. This must be a power of 2 on some targets.

Reimplemented from llvm::MCStreamer.

Definition at line 701 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::EmitThumbFunc ( MCSymbol Func)
overridevirtual

Note in the output that the specified Func is a Thumb mode function (ARM target only).

Reimplemented from llvm::MCStreamer.

Definition at line 672 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::EmitValueImpl ( const MCExpr Value,
unsigned  Size,
const SMLoc Loc = SMLoc() 
)
overridevirtual

Emit the expression Value into the output as a native integer of the given Size bytes.

This is used to implement assembler directives such as .word, .quad, etc.

Parameters
Value- The value to emit.
Size- The size of the integer (in bytes) to emit. This must match a native machine width.
Loc- The location of the expression for error reporting.

Reimplemented from llvm::MCStreamer.

Reimplemented in llvm::MipsELFStreamer.

Definition at line 346 of file MCELFStreamer.cpp.

References llvm::MCObjectStreamer::EmitValueImpl(), and llvm::report_fatal_error().

Referenced by llvm::MipsELFStreamer::EmitValueImpl().

void MCELFStreamer::EmitValueToAlignment ( unsigned  ByteAlignment,
int64_t  Value,
unsigned  ValueSize,
unsigned  MaxBytesToEmit 
)
overridevirtual

Emit some number of copies of Value until the byte alignment ByteAlignment is reached.

If the number of bytes need to emit for the alignment is not a multiple of ValueSize, then the contents of the emitted fill bytes is undefined.

This used to implement the .align assembler directive.

Parameters
ByteAlignment- The alignment to reach. This must be a power of two on some targets.
Value- The value to use when filling bytes.
ValueSize- The size of the integer (in bytes) to emit for Value. This must match a native machine width.
MaxBytesToEmit- The maximum numbers of bytes to emit, or 0. If the alignment cannot be reached in this many bytes, no bytes are emitted.

Reimplemented from llvm::MCStreamer.

Definition at line 354 of file MCELFStreamer.cpp.

References llvm::MCObjectStreamer::EmitValueToAlignment(), and llvm::report_fatal_error().

void MCELFStreamer::EmitWeakReference ( MCSymbol Alias,
const MCSymbol Symbol 
)
overridevirtual

Emit an weak reference from Alias to Symbol.

This corresponds to an assembler statement such as: .weakref alias, symbol

Parameters
Alias- The alias that is being created.
Symbol- The symbol being aliased.

Reimplemented from llvm::MCStreamer.

Definition at line 173 of file MCELFStreamer.cpp.

References llvm::MCSymbolRefExpr::create(), llvm::MCObjectStreamer::getAssembler(), llvm::MCStreamer::getContext(), llvm::MCAssembler::registerSymbol(), llvm::MCSymbol::setVariableValue(), and llvm::MCSymbolRefExpr::VK_WEAKREF.

void MCELFStreamer::EmitZerofill ( MCSection Section,
MCSymbol Symbol = nullptr,
uint64_t  Size = 0,
unsigned  ByteAlignment = 0 
)
overridevirtual

Emit the zerofill section and an optional symbol.

Parameters
Section- The zerofill section to create and or to put the symbol
Symbol- The zerofill symbol to emit, if non-NULL.
Size- The size of the zerofill symbol.
ByteAlignment- The alignment of the zerofill symbol if non-zero. This must be a power of 2 on some targets.

Implements llvm::MCStreamer.

Definition at line 696 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::EndCOFFSymbolDef ( )
overridevirtual

Marks the end of the symbol definition.

Reimplemented from llvm::MCStreamer.

Definition at line 692 of file MCELFStreamer.cpp.

References llvm_unreachable.

void MCELFStreamer::FinishImpl ( )
overridevirtual
void MCELFStreamer::Flush ( )
overridevirtual
void MCELFStreamer::InitSections ( bool  NoExecStack)
overridevirtual
void llvm::MCELFStreamer::reset ( )
inlineoverridevirtual

state management

Reimplemented from llvm::MCStreamer.

Definition at line 37 of file MCELFStreamer.h.

References llvm::MCObjectStreamer::reset().


The documentation for this class was generated from the following files: