LLVM  6.0.0svn
Public Member Functions | Protected Member Functions | List of all members
llvm::MCObjectStreamer Class Referenceabstract

Streaming object file generation interface. More...

#include "llvm/MC/MCObjectStreamer.h"

Inheritance diagram for llvm::MCObjectStreamer:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCObjectStreamer:
Collaboration graph
[legend]

Public Member Functions

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
 
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...
 
void visitUsedSymbol (const MCSymbol &Sym) override
 
MCAssemblergetAssembler ()
 
MCStreamer Interface
void EmitLabel (MCSymbol *Symbol, SMLoc Loc=SMLoc()) override
 Emit a label for Symbol into the current section. More...
 
virtual void EmitLabel (MCSymbol *Symbol, SMLoc Loc, MCFragment *F)
 
void EmitAssignment (MCSymbol *Symbol, const MCExpr *Value) override
 Emit an assignment of Value to Symbol. More...
 
void EmitValueImpl (const MCExpr *Value, unsigned Size, 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, bool=false) override
 Emit the given Instruction into the current section. More...
 
virtual void EmitInstToFragment (const MCInst &Inst, const MCSubtargetInfo &)
 Emit an instruction to a special fragment, because this instruction can change its size during relaxation. 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...
 
void emitValueToOffset (const MCExpr *Offset, unsigned char Value, SMLoc Loc) 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 EmitCVLocDirective (unsigned FunctionId, unsigned FileNo, unsigned Line, unsigned Column, bool PrologueEnd, bool IsStmt, StringRef FileName, SMLoc Loc) override
 This implements the CodeView '.cv_loc' assembler directive. More...
 
void EmitCVLinetableDirective (unsigned FunctionId, const MCSymbol *Begin, const MCSymbol *End) override
 This implements the CodeView '.cv_linetable' assembler directive. More...
 
void EmitCVInlineLinetableDirective (unsigned PrimaryFunctionId, unsigned SourceFileId, unsigned SourceLineNum, const MCSymbol *FnStartSym, const MCSymbol *FnEndSym) override
 This implements the CodeView '.cv_inline_linetable' assembler directive. More...
 
void EmitCVDefRangeDirective (ArrayRef< std::pair< const MCSymbol *, const MCSymbol *>> Ranges, StringRef FixedSizePortion) override
 This implements the CodeView '.cv_def_range' assembler directive. More...
 
void EmitCVStringTableDirective () override
 This implements the CodeView '.cv_stringtable' assembler directive. More...
 
void EmitCVFileChecksumsDirective () override
 This implements the CodeView '.cv_filechecksums' assembler directive. More...
 
void EmitCVFileChecksumOffsetDirective (unsigned FileNo) override
 This implements the CodeView '.cv_filechecksumoffset' assembler directive. More...
 
void EmitDTPRel32Value (const MCExpr *Value) override
 Emit the expression Value into the output as a dtprel (32-bit DTP relative) value. More...
 
void EmitDTPRel64Value (const MCExpr *Value) override
 Emit the expression Value into the output as a dtprel (64-bit DTP relative) value. More...
 
void EmitTPRel32Value (const MCExpr *Value) override
 Emit the expression Value into the output as a tprel (32-bit TP relative) value. More...
 
void EmitTPRel64Value (const MCExpr *Value) override
 Emit the expression Value into the output as a tprel (64-bit TP relative) value. More...
 
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...
 
bool EmitRelocDirective (const MCExpr &Offset, StringRef Name, const MCExpr *Expr, SMLoc Loc) override
 Emit a .reloc directive. More...
 
void emitFill (uint64_t NumBytes, uint8_t FillValue) override
 Emit NumBytes bytes worth of the value specified by FillValue. More...
 
void emitFill (const MCExpr &NumBytes, uint64_t FillValue, SMLoc Loc=SMLoc()) override
 Emit Size bytes worth of the value specified by FillValue. More...
 
void emitFill (const MCExpr &NumValues, int64_t Size, int64_t Expr, SMLoc Loc=SMLoc()) override
 
void EmitFileDirective (StringRef Filename) override
 Switch to a new logical file. 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
 MCStreamer (const MCStreamer &)=delete
 
MCStreameroperator= (const MCStreamer &)=delete
 
virtual ~MCStreamer ()
 
void visitUsedExpr (const MCExpr &Expr)
 
void setTargetStreamer (MCTargetStreamer *TS)
 
MCContextgetContext () const
 
MCTargetStreamergetTargetStreamer ()
 
unsigned getNumFrameInfos ()
 
ArrayRef< MCDwarfFrameInfogetDwarfFrameInfos () const
 
bool hasUnfinishedDwarfFrameInfo ()
 
unsigned getNumWinFrameInfos ()
 
ArrayRef< std::unique_ptr< WinEH::FrameInfo > > getWinFrameInfos () const
 
void generateCompactUnwindEncodings (MCAsmBackend *MAB)
 
virtual void EmitIdent (StringRef IdentString)
 Emit the "identifiers" directive. More...
 
virtual unsigned EmitDwarfFileDirective (unsigned FileNo, StringRef Directory, StringRef Filename, unsigned CUID=0)
 Associate a filename with a specified logical file number. More...
 
virtual bool EmitCVFileDirective (unsigned FileNo, StringRef Filename, ArrayRef< uint8_t > Checksum, unsigned ChecksumKind)
 Associate a filename with a specified logical file number, and also specify that file's checksum information. More...
 
virtual bool EmitCVFuncIdDirective (unsigned FunctionId)
 Introduces a function id for use with .cv_loc. More...
 
virtual bool EmitCVInlineSiteIdDirective (unsigned FunctionId, unsigned IAFunc, unsigned IAFile, unsigned IALine, unsigned IACol, SMLoc Loc)
 Introduces an inline call site id for use with .cv_loc. More...
 
virtual void EmitCVFPOData (const MCSymbol *ProcSym, SMLoc Loc={})
 This implements the CodeView '.cv_fpo_data' assembler directive. 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 EmitCFIReturnColumn (int64_t Register)
 
virtual void EmitCFIGnuArgsSize (int64_t Size)
 
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, SMLoc Loc=SMLoc())
 
virtual void EmitWinCFIEndProc (SMLoc Loc=SMLoc())
 
virtual void EmitWinCFIStartChained (SMLoc Loc=SMLoc())
 
virtual void EmitWinCFIEndChained (SMLoc Loc=SMLoc())
 
virtual void EmitWinCFIPushReg (unsigned Register, SMLoc Loc=SMLoc())
 
virtual void EmitWinCFISetFrame (unsigned Register, unsigned Offset, SMLoc Loc=SMLoc())
 
virtual void EmitWinCFIAllocStack (unsigned Size, SMLoc Loc=SMLoc())
 
virtual void EmitWinCFISaveReg (unsigned Register, unsigned Offset, SMLoc Loc=SMLoc())
 
virtual void EmitWinCFISaveXMM (unsigned Register, unsigned Offset, SMLoc Loc=SMLoc())
 
virtual void EmitWinCFIPushFrame (bool Code, SMLoc Loc=SMLoc())
 
virtual void EmitWinCFIEndProlog (SMLoc Loc=SMLoc())
 
virtual void EmitWinEHHandler (const MCSymbol *Sym, bool Unwind, bool Except, SMLoc Loc=SMLoc())
 
virtual void EmitWinEHHandlerData (SMLoc Loc=SMLoc())
 
MCSectiongetAssociatedPDataSection (const MCSection *TextSec)
 Get the .pdata section used for the given section. More...
 
MCSectiongetAssociatedXDataSection (const MCSection *TextSec)
 Get the .xdata section used for the given section. More...
 
virtual void EmitSyntaxDirective ()
 
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, bool EOL=true)
 Add a textual comment. 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 addExplicitComment (const Twine &T)
 Add explicit comment T. More...
 
virtual void emitExplicitComments ()
 Emit added explicit comments. 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...
 
virtual void InitSections (bool NoExecStack)
 Create the default sections and set the initial one. More...
 
MCSymbolendSection (MCSection *Section)
 
void AssignFragment (MCSymbol *Symbol, MCFragment *Fragment)
 Sets the symbol's section. More...
 
virtual void EmitEHSymAttributes (const MCSymbol *Symbol, MCSymbol *EHSymbol)
 
virtual void EmitAssemblerFlag (MCAssemblerFlag Flag)
 Note in the output the specified Flag. More...
 
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 EmitThumbFunc (MCSymbol *Func)
 Note in the output that the specified Func is a Thumb mode function (ARM target only). More...
 
virtual bool EmitSymbolAttribute (MCSymbol *Symbol, MCSymbolAttr Attribute)=0
 Add the given Attribute to Symbol. More...
 
virtual void EmitSymbolDesc (MCSymbol *Symbol, unsigned DescValue)
 Set the DescValue for the Symbol. More...
 
virtual void BeginCOFFSymbolDef (const MCSymbol *Symbol)
 Start emitting COFF symbol definition. More...
 
virtual void EmitCOFFSymbolStorageClass (int StorageClass)
 Emit the storage class of the symbol. More...
 
virtual void EmitCOFFSymbolType (int Type)
 Emit the type of the symbol. More...
 
virtual void EndCOFFSymbolDef ()
 Marks the end of the symbol definition. 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, uint64_t Offset)
 Emits a COFF section relative relocation. More...
 
virtual void emitELFSize (MCSymbol *Symbol, const MCExpr *Value)
 Emit an ELF .size directive. More...
 
virtual void emitELFSymverDirective (MCSymbol *Alias, const MCSymbol *Aliasee)
 Emit an ELF .symver directive. More...
 
virtual void EmitLOHDirective (MCLOHType Kind, const MCLOHArgs &Args)
 Emit a Linker Optimization Hint (LOH) directive. More...
 
virtual void EmitCommonSymbol (MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment)=0
 Emit a common symbol. More...
 
virtual void EmitLocalCommonSymbol (MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment)
 Emit a local common (.lcomm) symbol. More...
 
virtual void EmitZerofill (MCSection *Section, MCSymbol *Symbol=nullptr, uint64_t Size=0, unsigned ByteAlignment=0)=0
 Emit the zerofill section and an optional symbol. More...
 
virtual void EmitTBSSSymbol (MCSection *Section, MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment=0)
 Emit a thread local bss (.tbss) symbol. More...
 
virtual void EmitBinaryData (StringRef Data)
 Functionally identical to EmitBytes. More...
 
void EmitValue (const MCExpr *Value, unsigned Size, 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)
 Special case of EmitULEB128Value that avoids the client having to pass in a MCExpr for constant integers. More...
 
void EmitPaddedULEB128IntValue (uint64_t Value, unsigned PadTo)
 Like EmitULEB128Value but pads the output to specific number of bytes. 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...
 
virtual void emitFill (uint64_t NumValues, int64_t Size, int64_t Expr)
 Emit NumValues copies of Size bytes. More...
 
void EmitZeros (uint64_t NumBytes)
 Emit NumBytes worth of zeros. More...
 

Protected Member Functions

 MCObjectStreamer (MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, raw_pwrite_stream &OS, std::unique_ptr< MCCodeEmitter > Emitter)
 
 ~MCObjectStreamer ()
 
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

Streaming object file generation interface.

This class provides an implementation of the MCStreamer interface which is suitable for use with the assembler backend. Specific object file formats are expected to subclass this interface to implement directives specific to that file format or custom semantics expected by the object writer implementation.

Definition at line 36 of file MCObjectStreamer.h.

Constructor & Destructor Documentation

◆ MCObjectStreamer()

MCObjectStreamer::MCObjectStreamer ( MCContext Context,
std::unique_ptr< MCAsmBackend TAB,
raw_pwrite_stream OS,
std::unique_ptr< MCCodeEmitter Emitter 
)
protected

Definition at line 28 of file MCObjectStreamer.cpp.

◆ ~MCObjectStreamer()

MCObjectStreamer::~MCObjectStreamer ( )
protected

Definition at line 38 of file MCObjectStreamer.cpp.

Member Function Documentation

◆ ChangeSection()

void MCObjectStreamer::ChangeSection ( MCSection ,
const MCExpr  
)
overridevirtual

Update streamer for a new active section.

This is called by PopSection and SwitchSection, if the current section changes.

Reimplemented from llvm::MCStreamer.

Reimplemented in llvm::MCWasmStreamer.

Definition at line 215 of file MCObjectStreamer.cpp.

References changeSectionImpl().

Referenced by llvm::MCWasmStreamer::ChangeSection(), and getAssembler().

◆ changeSectionImpl()

bool MCObjectStreamer::changeSectionImpl ( MCSection Section,
const MCExpr Subsection 
)
protected

◆ emitAbsoluteSymbolDiff()

void MCObjectStreamer::emitAbsoluteSymbolDiff ( const MCSymbol Hi,
const MCSymbol Lo,
unsigned  Size 
)
overridevirtual

Emit the absolute difference between two symbols if possible.

Emit the absolute difference between Hi and Lo, as long as we can compute it. Currently, that requires that both symbols are in the same data fragment. Otherwise, do nothing and return false.

Precondition
Offset of Hi is greater than the offset Lo.

Reimplemented from llvm::MCStreamer.

Definition at line 56 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::emitAbsoluteSymbolDiff(), llvm::MCStreamer::EmitIntValue(), llvm::MCSymbol::getFragment(), llvm::MCSymbol::getOffset(), llvm::MCSymbol::isVariable(), and llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size.

Referenced by llvm::CodeViewContext::emitFileChecksums(), llvm::CodeViewContext::emitLineTableForFunction(), llvm::CodeViewContext::emitStringTable(), and getAssembler().

◆ EmitAssignment()

void MCObjectStreamer::EmitAssignment ( MCSymbol Symbol,
const MCExpr Value 
)
overridevirtual

Emit an assignment of Value to Symbol.

This corresponds to an assembler statement such as: symbol = value

The assignment generates no code, but has the side effect of binding the value in the current context. For the assembly streamer, this prints the binding into the .s file.

Parameters
Symbol- The symbol being assigned to.
Value- The value for the symbol.

Reimplemented from llvm::MCStreamer.

Definition at line 239 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitAssignment(), getAssembler(), and llvm::MCAssembler::registerSymbol().

Referenced by canGoAfterDWARF(), llvm::CodeViewContext::emitFileChecksums(), and getAssembler().

◆ EmitBundleAlignMode()

void MCObjectStreamer::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 308 of file MCObjectStreamer.cpp.

References llvm_unreachable.

Referenced by getAssembler().

◆ EmitBundleLock()

void MCObjectStreamer::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 312 of file MCObjectStreamer.cpp.

References llvm_unreachable.

Referenced by getAssembler().

◆ EmitBundleUnlock()

void MCObjectStreamer::EmitBundleUnlock ( )
overridevirtual

Ends a bundle-locked group.

Reimplemented from llvm::MCStreamer.

Definition at line 316 of file MCObjectStreamer.cpp.

References llvm_unreachable.

Referenced by getAssembler().

◆ EmitBytes()

void MCObjectStreamer::EmitBytes ( StringRef  Data)
overridevirtual

◆ EmitCFISections()

void MCObjectStreamer::EmitCFISections ( bool  EH,
bool  Debug 
)
overridevirtual

Reimplemented from llvm::MCStreamer.

Definition at line 115 of file MCObjectStreamer.cpp.

References Debug, and llvm::MCStreamer::EmitCFISections().

Referenced by isIntegratedAssemblerRequired().

◆ EmitCodeAlignment()

void MCObjectStreamer::EmitCodeAlignment ( unsigned  ByteAlignment,
unsigned  MaxBytesToEmit = 0 
)
overridevirtual

Emit nops until the byte alignment ByteAlignment is reached.

This used to align code where the alignment bytes may be executed. This can emit different bytes for different sizes to optimize execution.

Parameters
ByteAlignment- The alignment to reach. This must be a power of two on some targets.
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 458 of file MCObjectStreamer.cpp.

References EmitValueToAlignment(), and getCurrentFragment().

Referenced by getAssembler(), llvm::MCELFStreamer::InitSections(), and llvm::MCWinCOFFStreamer::InitSections().

◆ EmitCVDefRangeDirective()

void MCObjectStreamer::EmitCVDefRangeDirective ( ArrayRef< std::pair< const MCSymbol *, const MCSymbol *>>  Ranges,
StringRef  FixedSizePortion 
)
overridevirtual

This implements the CodeView '.cv_def_range' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 418 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitCVDefRangeDirective(), llvm::CodeViewContext::emitDefRange(), llvm::MCStreamer::getContext(), and llvm::MCContext::getCVContext().

Referenced by getAssembler().

◆ EmitCVFileChecksumOffsetDirective()

void MCObjectStreamer::EmitCVFileChecksumOffsetDirective ( unsigned  FileNo)
overridevirtual

This implements the CodeView '.cv_filechecksumoffset' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 432 of file MCObjectStreamer.cpp.

References llvm::CodeViewContext::emitFileChecksumOffset(), llvm::MCStreamer::getContext(), and llvm::MCContext::getCVContext().

Referenced by llvm::CodeViewContext::emitLineTableForFunction(), and getAssembler().

◆ EmitCVFileChecksumsDirective()

void MCObjectStreamer::EmitCVFileChecksumsDirective ( )
overridevirtual

This implements the CodeView '.cv_filechecksums' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 428 of file MCObjectStreamer.cpp.

References llvm::CodeViewContext::emitFileChecksums(), llvm::MCStreamer::getContext(), and llvm::MCContext::getCVContext().

Referenced by getAssembler().

◆ EmitCVInlineLinetableDirective()

void MCObjectStreamer::EmitCVInlineLinetableDirective ( unsigned  PrimaryFunctionId,
unsigned  SourceFileId,
unsigned  SourceLineNum,
const MCSymbol FnStartSym,
const MCSymbol FnEndSym 
)
overridevirtual

This implements the CodeView '.cv_inline_linetable' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 408 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitCVInlineLinetableDirective(), llvm::CodeViewContext::emitInlineLineTableForFunction(), llvm::MCStreamer::getContext(), and llvm::MCContext::getCVContext().

Referenced by getAssembler().

◆ EmitCVLinetableDirective()

void MCObjectStreamer::EmitCVLinetableDirective ( unsigned  FunctionId,
const MCSymbol FnStart,
const MCSymbol FnEnd 
)
overridevirtual

This implements the CodeView '.cv_linetable' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 400 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitCVLinetableDirective(), llvm::CodeViewContext::emitLineTableForFunction(), llvm::MCStreamer::getContext(), and llvm::MCContext::getCVContext().

Referenced by getAssembler().

◆ EmitCVLocDirective()

void MCObjectStreamer::EmitCVLocDirective ( unsigned  FunctionId,
unsigned  FileNo,
unsigned  Line,
unsigned  Column,
bool  PrologueEnd,
bool  IsStmt,
StringRef  FileName,
SMLoc  Loc 
)
overridevirtual

This implements the CodeView '.cv_loc' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 388 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitCVLocDirective(), and llvm::MCCVLineEntry::Make().

Referenced by getAssembler().

◆ EmitCVStringTableDirective()

void MCObjectStreamer::EmitCVStringTableDirective ( )
overridevirtual

This implements the CodeView '.cv_stringtable' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 425 of file MCObjectStreamer.cpp.

References llvm::CodeViewContext::emitStringTable(), llvm::MCStreamer::getContext(), and llvm::MCContext::getCVContext().

Referenced by getAssembler().

◆ EmitDTPRel32Value()

void MCObjectStreamer::EmitDTPRel32Value ( const MCExpr Value)
overridevirtual

Emit the expression Value into the output as a dtprel (32-bit DTP relative) value.

This is used to implement assembler directives such as .dtprelword on targets that support them.

Reimplemented from llvm::MCStreamer.

Definition at line 471 of file MCObjectStreamer.cpp.

References llvm::MCFixup::create(), llvm::FK_DTPRel_4, flushPendingLabels(), llvm::MCEncodedFragmentWithContents< ContentsSize >::getContents(), llvm::MCEncodedFragmentWithFixups< ContentsSize, FixupsSize >::getFixups(), getOrCreateDataFragment(), llvm::SmallVectorImpl< T >::resize(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by getAssembler().

◆ EmitDTPRel64Value()

void MCObjectStreamer::EmitDTPRel64Value ( const MCExpr Value)
overridevirtual

Emit the expression Value into the output as a dtprel (64-bit DTP relative) value.

This is used to implement assembler directives such as .dtpreldword on targets that support them.

Reimplemented from llvm::MCStreamer.

Definition at line 481 of file MCObjectStreamer.cpp.

References llvm::MCFixup::create(), llvm::FK_DTPRel_8, flushPendingLabels(), llvm::MCEncodedFragmentWithContents< ContentsSize >::getContents(), llvm::MCEncodedFragmentWithFixups< ContentsSize, FixupsSize >::getFixups(), getOrCreateDataFragment(), llvm::SmallVectorImpl< T >::resize(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by getAssembler().

◆ EmitDwarfAdvanceFrameAddr()

void MCObjectStreamer::EmitDwarfAdvanceFrameAddr ( const MCSymbol LastLabel,
const MCSymbol Label 
)

◆ EmitDwarfAdvanceLineAddr()

void MCObjectStreamer::EmitDwarfAdvanceLineAddr ( int64_t  LineDelta,
const MCSymbol LastLabel,
const MCSymbol Label,
unsigned  PointerSize 
)

◆ EmitDwarfLocDirective()

void MCObjectStreamer::EmitDwarfLocDirective ( unsigned  FileNo,
unsigned  Line,
unsigned  Column,
unsigned  Flags,
unsigned  Isa,
unsigned  Discriminator,
StringRef  FileName 
)
overridevirtual

This implements the DWARF2 '.loc fileno lineno ...' assembler directive.

Reimplemented from llvm::MCStreamer.

Definition at line 320 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitDwarfLocDirective(), llvm::MCStreamer::getCurrentSectionOnly(), and llvm::MCDwarfLineEntry::Make().

Referenced by getAssembler().

◆ EmitFileDirective()

void MCObjectStreamer::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 597 of file MCObjectStreamer.cpp.

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

Referenced by getAssembler().

◆ emitFill() [1/3]

void MCObjectStreamer::emitFill ( uint64_t  NumBytes,
uint8_t  FillValue 
)
overridevirtual

Emit NumBytes bytes worth of the value specified by FillValue.

This implements directives such as '.space'.

Reimplemented from llvm::MCStreamer.

Definition at line 555 of file MCObjectStreamer.cpp.

References assert(), llvm::MCStreamer::getCurrentSectionOnly(), and insert().

Referenced by emitFill(), and getAssembler().

◆ emitFill() [2/3]

void MCObjectStreamer::emitFill ( const MCExpr NumBytes,
uint64_t  FillValue,
SMLoc  Loc = SMLoc() 
)
overridevirtual

Emit Size bytes worth of the value specified by FillValue.

This is used to implement assembler directives such as .space or .skip.

Parameters
NumBytes- The number of bytes to emit.
FillValue- The value to use when filling bytes.
Loc- The location of the expression for error reporting.

Reimplemented from llvm::MCStreamer.

Definition at line 560 of file MCObjectStreamer.cpp.

References emitFill(), flushPendingLabels(), getAssembler(), llvm::MCEncodedFragmentWithContents< ContentsSize >::getContents(), llvm::MCStreamer::getContext(), getOrCreateDataFragment(), llvm::MCContext::reportError(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

◆ emitFill() [3/3]

void MCObjectStreamer::emitFill ( const MCExpr NumValues,
int64_t  Size,
int64_t  Expr,
SMLoc  Loc = SMLoc() 
)
overridevirtual

◆ EmitFrames()

void MCObjectStreamer::EmitFrames ( MCAsmBackend MAB)

◆ EmitGPRel32Value()

void MCObjectStreamer::EmitGPRel32Value ( const MCExpr Value)
overridevirtual

Emit the expression Value into the output as a gprel32 (32-bit GP relative) value.

This is used to implement assembler directives such as .gprel32 on targets that support them.

Reimplemented from llvm::MCStreamer.

Definition at line 511 of file MCObjectStreamer.cpp.

References llvm::MCFixup::create(), llvm::FK_GPRel_4, flushPendingLabels(), llvm::MCEncodedFragmentWithContents< ContentsSize >::getContents(), llvm::MCEncodedFragmentWithFixups< ContentsSize, FixupsSize >::getFixups(), getOrCreateDataFragment(), llvm::SmallVectorImpl< T >::resize(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by getAssembler().

◆ EmitGPRel64Value()

void MCObjectStreamer::EmitGPRel64Value ( const MCExpr Value)
overridevirtual

Emit the expression Value into the output as a gprel64 (64-bit GP relative) value.

This is used to implement assembler directives such as .gpdword on targets that support them.

Reimplemented from llvm::MCStreamer.

Definition at line 521 of file MCObjectStreamer.cpp.

References llvm::MCFixup::create(), llvm::FK_GPRel_4, flushPendingLabels(), llvm::MCEncodedFragmentWithContents< ContentsSize >::getContents(), llvm::MCEncodedFragmentWithFixups< ContentsSize, FixupsSize >::getFixups(), getOrCreateDataFragment(), llvm::SmallVectorImpl< T >::resize(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by getAssembler().

◆ EmitInstruction()

void MCObjectStreamer::EmitInstruction ( const MCInst Inst,
const MCSubtargetInfo STI,
bool  PrintSchedInfo = false 
)
overridevirtual

◆ EmitInstToFragment()

void MCObjectStreamer::EmitInstToFragment ( const MCInst Inst,
const MCSubtargetInfo STI 
)
virtual

◆ EmitLabel() [1/2]

void MCObjectStreamer::EmitLabel ( MCSymbol Symbol,
SMLoc  Loc = SMLoc() 
)
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, and llvm::MCWinCOFFStreamer.

Definition at line 164 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitLabel(), F(), getAssembler(), getCurrentFragment(), llvm::MCAssembler::registerSymbol(), llvm::MCSymbol::setFragment(), and llvm::MCSymbol::setOffset().

Referenced by canGoAfterDWARF(), llvm::MCDwarfFrameEmitter::Emit(), llvm::MCDwarfLineTable::EmitCU(), llvm::CodeViewContext::emitFileChecksums(), llvm::MCELFStreamer::EmitLabel(), llvm::MCWinCOFFStreamer::EmitLabel(), llvm::CodeViewContext::emitLineTableForFunction(), llvm::CodeViewContext::emitStringTable(), EmitValueImpl(), getAssembler(), llvm::MCCVLineEntry::Make(), and llvm::MCDwarfLineEntry::Make().

◆ EmitLabel() [2/2]

void MCObjectStreamer::EmitLabel ( MCSymbol Symbol,
SMLoc  Loc,
MCFragment F 
)
virtual

◆ EmitRelocDirective()

bool MCObjectStreamer::EmitRelocDirective ( const MCExpr Offset,
StringRef  Name,
const MCExpr Expr,
SMLoc  Loc 
)
overridevirtual

◆ EmitSLEB128Value()

void MCObjectStreamer::EmitSLEB128Value ( const MCExpr Value)
overridevirtual

Reimplemented from llvm::MCStreamer.

Definition at line 201 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitSLEB128IntValue(), getAssembler(), and insert().

Referenced by getAssembler().

◆ EmitTPRel32Value()

void MCObjectStreamer::EmitTPRel32Value ( const MCExpr Value)
overridevirtual

Emit the expression Value into the output as a tprel (32-bit TP relative) value.

This is used to implement assembler directives such as .tprelword on targets that support them.

Reimplemented from llvm::MCStreamer.

Definition at line 491 of file MCObjectStreamer.cpp.

References llvm::MCFixup::create(), llvm::FK_TPRel_4, flushPendingLabels(), llvm::MCEncodedFragmentWithContents< ContentsSize >::getContents(), llvm::MCEncodedFragmentWithFixups< ContentsSize, FixupsSize >::getFixups(), getOrCreateDataFragment(), llvm::SmallVectorImpl< T >::resize(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by getAssembler().

◆ EmitTPRel64Value()

void MCObjectStreamer::EmitTPRel64Value ( const MCExpr Value)
overridevirtual

Emit the expression Value into the output as a tprel (64-bit TP relative) value.

This is used to implement assembler directives such as .tpreldword on targets that support them.

Reimplemented from llvm::MCStreamer.

Definition at line 501 of file MCObjectStreamer.cpp.

References llvm::MCFixup::create(), llvm::FK_TPRel_8, flushPendingLabels(), llvm::MCEncodedFragmentWithContents< ContentsSize >::getContents(), llvm::MCEncodedFragmentWithFixups< ContentsSize, FixupsSize >::getFixups(), getOrCreateDataFragment(), llvm::SmallVectorImpl< T >::resize(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by getAssembler().

◆ EmitULEB128Value()

void MCObjectStreamer::EmitULEB128Value ( const MCExpr Value)
overridevirtual

Reimplemented from llvm::MCStreamer.

Definition at line 192 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::EmitULEB128IntValue(), getAssembler(), and insert().

Referenced by getAssembler().

◆ EmitValueImpl()

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

◆ EmitValueToAlignment()

void MCObjectStreamer::EmitValueToAlignment ( unsigned  ByteAlignment,
int64_t  Value = 0,
unsigned  ValueSize = 1,
unsigned  MaxBytesToEmit = 0 
)
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.

Reimplemented in llvm::MCWasmStreamer.

Definition at line 444 of file MCObjectStreamer.cpp.

References llvm::LCOMM::ByteAlignment, llvm::MCSection::getAlignment(), llvm::MCStreamer::getCurrentSectionOnly(), insert(), and llvm::MCSection::setAlignment().

Referenced by llvm::MCDwarfFrameEmitter::Emit(), EmitCodeAlignment(), llvm::CodeViewContext::emitFileChecksums(), llvm::CodeViewContext::emitStringTable(), llvm::MCELFStreamer::EmitValueToAlignment(), llvm::MCWasmStreamer::EmitValueToAlignment(), and getAssembler().

◆ emitValueToOffset()

void MCObjectStreamer::emitValueToOffset ( const MCExpr Offset,
unsigned char  Value,
SMLoc  Loc 
)
overridevirtual

Emit some number of copies of Value until the byte offset Offset is reached.

This is used to implement assembler directives such as .org.

Parameters
Offset- The offset to reach. This may be an expression, but the expression must be associated with the current section.
Value- The value to use when filling bytes.

Reimplemented from llvm::MCStreamer.

Definition at line 464 of file MCObjectStreamer.cpp.

References insert().

Referenced by getAssembler().

◆ EmitWeakReference()

void MCObjectStreamer::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.

Reimplemented in llvm::MCWasmStreamer.

Definition at line 210 of file MCObjectStreamer.cpp.

References llvm::report_fatal_error().

Referenced by getAssembler().

◆ FinishImpl()

void MCObjectStreamer::FinishImpl ( )
overridevirtual

◆ flushPendingLabels()

void MCObjectStreamer::flushPendingLabels ( MCFragment F,
uint64_t  FOffset = 0 
)
protected

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.

Optionally, it is also possible to provide an offset FOffset, which will be used as a symbol offset within the fragment.

Definition at line 40 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::getCurrentSectionOnly(), llvm::MCSection::getFragmentList(), llvm::iplist_impl< IntrusiveListT, TraitsT >::insert(), and llvm::MCFragment::setParent().

Referenced by changeSectionImpl(), EmitBytes(), EmitDTPRel32Value(), EmitDTPRel64Value(), emitFill(), EmitGPRel32Value(), EmitGPRel64Value(), EmitRelocDirective(), EmitTPRel32Value(), EmitTPRel64Value(), EmitValueImpl(), FinishImpl(), insert(), llvm::MCELFStreamer::MCELFStreamer(), and llvm::MCWasmStreamer::~MCWasmStreamer().

◆ getAssembler()

MCAssembler& llvm::MCObjectStreamer::getAssembler ( )
inline

Definition at line 92 of file MCObjectStreamer.h.

References llvm::LCOMM::ByteAlignment, ChangeSection(), llvm::Data, emitAbsoluteSymbolDiff(), EmitAssignment(), EmitBundleAlignMode(), EmitBundleLock(), EmitBundleUnlock(), EmitBytes(), EmitCodeAlignment(), EmitCVDefRangeDirective(), EmitCVFileChecksumOffsetDirective(), EmitCVFileChecksumsDirective(), EmitCVInlineLinetableDirective(), EmitCVLinetableDirective(), EmitCVLocDirective(), EmitCVStringTableDirective(), EmitDTPRel32Value(), EmitDTPRel64Value(), EmitDwarfAdvanceFrameAddr(), EmitDwarfAdvanceLineAddr(), EmitDwarfLocDirective(), EmitFileDirective(), emitFill(), llvm::MCStreamer::emitFill(), EmitGPRel32Value(), EmitGPRel64Value(), EmitInstruction(), EmitInstToFragment(), EmitLabel(), EmitRelocDirective(), EmitSLEB128Value(), EmitTPRel32Value(), EmitTPRel64Value(), EmitULEB128Value(), EmitValueImpl(), EmitValueToAlignment(), emitValueToOffset(), EmitWeakReference(), llvm::WebAssembly::End, FinishImpl(), llvm::MipsISD::Hi, llvm::MipsISD::Lo, mayHaveInstructions(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, and llvm::ARMBuildAttrs::Symbol.

Referenced by llvm::AMDGPUELFStreamer::AMDGPUELFStreamer(), llvm::AVRELFStreamer::AVRELFStreamer(), llvm::MCELFStreamer::ChangeSection(), llvm::MCWasmStreamer::ChangeSection(), changeSectionImpl(), llvm::createELFStreamer(), llvm::MipsELFStreamer::createPendingLabelRelocs(), llvm::createWasmStreamer(), llvm::MCELFStreamer::EmitAssemblerFlag(), llvm::MCWasmStreamer::EmitAssemblerFlag(), EmitAssignment(), llvm::MCELFStreamer::EmitBundleAlignMode(), llvm::MCELFStreamer::EmitBundleLock(), llvm::MCELFStreamer::EmitBundleUnlock(), llvm::MCWinCOFFStreamer::EmitCOFFSafeSEH(), llvm::MCWinCOFFStreamer::EmitCOFFSymbolStorageClass(), llvm::MCWinCOFFStreamer::EmitCOFFSymbolType(), llvm::MCELFStreamer::EmitCommonSymbol(), llvm::MCWinCOFFStreamer::EmitCommonSymbol(), llvm::MipsTargetELFStreamer::emitDirectiveAbiCalls(), llvm::MipsTargetELFStreamer::emitDirectiveCpLoad(), llvm::MipsTargetELFStreamer::emitDirectiveCpsetup(), llvm::MipsTargetELFStreamer::emitDirectiveEnd(), llvm::MipsTargetELFStreamer::emitDirectiveNaN2008(), llvm::MipsTargetELFStreamer::emitDirectiveNaNLegacy(), llvm::MipsTargetELFStreamer::emitDirectiveOptionPic0(), llvm::MipsTargetELFStreamer::emitDirectiveOptionPic2(), llvm::MipsTargetELFStreamer::emitDirectiveSetMips16(), llvm::MipsTargetELFStreamer::emitDirectiveSetNoReorder(), EmitDwarfAdvanceFrameAddr(), EmitDwarfAdvanceLineAddr(), EmitFileDirective(), emitFill(), llvm::MipsTargetELFStreamer::emitFrame(), llvm::MCELFStreamer::EmitIdent(), llvm::MCWasmStreamer::EmitIdent(), EmitInstruction(), llvm::MCWinCOFFStreamer::EmitInstToData(), EmitInstToFragment(), EmitLabel(), llvm::MipsTargetELFStreamer::emitLabel(), llvm::MCELFStreamer::EmitLocalCommonSymbol(), llvm::MCWinCOFFStreamer::EmitLocalCommonSymbol(), llvm::MipsTargetELFStreamer::emitMipsAbiFlags(), llvm::MipsRegInfoRecord::EmitMipsOptionRecord(), EmitSLEB128Value(), llvm::MCWinCOFFStreamer::EmitSymbolAttribute(), llvm::MCELFStreamer::EmitSymbolAttribute(), llvm::MCWasmStreamer::EmitSymbolAttribute(), EmitULEB128Value(), EmitValueImpl(), llvm::MCELFStreamer::EmitWeakReference(), llvm::MCWasmStreamer::EmitWeakReference(), llvm::MipsTargetELFStreamer::finish(), llvm::MCELFStreamer::FinishImpl(), FinishImpl(), llvm::HexagonMCELFStreamer::HexagonMCEmitCommonSymbol(), llvm::HexagonMCELFStreamer::HexagonMCEmitLocalCommonSymbol(), llvm::MCELFStreamer::MCELFStreamer(), llvm::MipsTargetELFStreamer::MipsTargetELFStreamer(), and llvm::MipsTargetELFStreamer::setUsesMicroMips().

◆ getCurrentFragment()

MCFragment * MCObjectStreamer::getCurrentFragment ( ) const

◆ getOrCreateDataFragment()

MCDataFragment * MCObjectStreamer::getOrCreateDataFragment ( )

◆ insert()

void llvm::MCObjectStreamer::insert ( MCFragment F)
inline

◆ isIntegratedAssemblerRequired()

bool llvm::MCObjectStreamer::isIntegratedAssemblerRequired ( ) const
inlineoverridevirtual

Object streamers require the integrated assembler.

Reimplemented from llvm::MCStreamer.

Definition at line 62 of file MCObjectStreamer.h.

References Debug, EmitCFISections(), EmitFrames(), and getCurrentFragment().

◆ mayHaveInstructions()

bool MCObjectStreamer::mayHaveInstructions ( MCSection Sec) const
overridevirtual

Reimplemented from llvm::MCStreamer.

Definition at line 244 of file MCObjectStreamer.cpp.

References llvm::MCSection::hasInstructions().

Referenced by getAssembler().

◆ reset()

void MCObjectStreamer::reset ( )
overridevirtual

state management

Reimplemented from llvm::MCStreamer.

Reimplemented in llvm::MCWasmStreamer, and llvm::MCWinCOFFStreamer.

Definition at line 69 of file MCObjectStreamer.cpp.

References llvm::MCStreamer::reset().

Referenced by llvm::MCELFStreamer::reset(), llvm::MCWinCOFFStreamer::reset(), and llvm::MCWasmStreamer::reset().

◆ visitUsedSymbol()

void MCObjectStreamer::visitUsedSymbol ( const MCSymbol Sym)
overridevirtual

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