LLVM: llvm::MCObjectWriter Class Reference (original ) (raw )Defines the object file and target independent interfaces used by the assembler backend to write native file format object files. More...
#include "[llvm/MC/MCObjectWriter.h](MCObjectWriter%5F8h%5Fsource.html)"
Public Member Functions
MCObjectWriter (const MCObjectWriter &)=delete
MCObjectWriter &
operator= (const MCObjectWriter &)=delete
virtual
~MCObjectWriter ()
virtual void
reset ()
lifetime management
High-Level API
virtual void
executePostLayoutBinding (MCAssembler &Asm)
Perform any late binding of symbols (for example, to assign symbol indices for use when generating relocations).
virtual void
recordRelocation (MCAssembler &Asm, const MCFragment *Fragment, const MCFixup &Fixup , MCValue Target , uint64_t &FixedValue)=0
Record a relocation entry.
bool
isSymbolRefDifferenceFullyResolved (const MCAssembler &Asm, const MCSymbolRefExpr *A , const MCSymbolRefExpr *B , bool InSet) const
Check whether the difference (A - B) between two symbol references is fully resolved.
virtual bool
isSymbolRefDifferenceFullyResolvedImpl (const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB, bool InSet, bool IsPCRel) const
MutableArrayRef < std::pair< std::string, size_t > >
getFileNames ()
void
addFileName (MCAssembler &Asm, StringRef FileName)
void
setCompilerVersion (StringRef CompilerVers)
void
emitAddrsigSection ()
Tell the object writer to emit an address-significance table during writeObject() .
bool
getEmitAddrsigSection ()
void
addAddrsigSymbol (const MCSymbol *Sym )
Record the given symbol in the address-significance table to be written diring writeObject() .
std::vector< const MCSymbol * > &
getAddrsigSyms ()
SmallVector < CGProfileEntry , 0 > &
getCGProfile ()
bool
getSubsectionsViaSymbols () const
void
setSubsectionsViaSymbols (bool Value )
virtual uint64_t
writeObject (MCAssembler &Asm)=0
Write the object file and returns the number of bytes written.
Defines the object file and target independent interfaces used by the assembler backend to write native file format object files.
The object writer contains a few callbacks used by the assembler to allow the object writer to modify the assembler data structures at appropriate points. Once assembly is complete, the object writer is given the MCAssembler instance, which contains all the symbol and section data which should be emitted as part of writeObject() .
Definition at line 33 of file MCObjectWriter.h .
llvm::MCObjectWriter::MCObjectWriter ( )
protecteddefault
◆ MCObjectWriter() [2/2]◆ ~MCObjectWriter()
MCObjectWriter::~MCObjectWriter ( )
virtualdefault
◆ addAddrsigSymbol()
void llvm::MCObjectWriter::addAddrsigSymbol ( const MCSymbol * Sym )
inline
◆ addFileName()◆ emitAddrsigSection()
void llvm::MCObjectWriter::emitAddrsigSection ( )
inline
◆ executePostLayoutBinding()
virtual void llvm::MCObjectWriter::executePostLayoutBinding ( MCAssembler & Asm )
inlinevirtual
◆ getAddrsigSyms()
std::vector< const MCSymbol * > & llvm::MCObjectWriter::getAddrsigSyms ( )
inline
◆ getCGProfile()◆ getEmitAddrsigSection()
bool llvm::MCObjectWriter::getEmitAddrsigSection ( )
inline
◆ getFileNames()
MutableArrayRef < std::pair< std::string, size_t > > llvm::MCObjectWriter::getFileNames ( )
inline
◆ getSubsectionsViaSymbols()
bool llvm::MCObjectWriter::getSubsectionsViaSymbols ( ) const
inline
◆ isSymbolRefDifferenceFullyResolved()◆ isSymbolRefDifferenceFullyResolvedImpl()◆ operator=()◆ recordRelocation()◆ reset()
void MCObjectWriter::reset ( )
virtual
◆ setCompilerVersion()
void llvm::MCObjectWriter::setCompilerVersion ( StringRef CompilerVers )
inline
◆ setSubsectionsViaSymbols()
void llvm::MCObjectWriter::setSubsectionsViaSymbols ( bool Value )
inline
◆ writeObject()◆ AddrsigSyms◆ CGProfile◆ CompilerVersion
std::string llvm::MCObjectWriter::CompilerVersion
protected
◆ EmitAddrsigSection
bool llvm::MCObjectWriter::EmitAddrsigSection = false
protected
◆ FileNames
SmallVector <std::pair<std::string, size_t>, 0> llvm::MCObjectWriter::FileNames
protected
◆ SubsectionsViaSymbols
bool llvm::MCObjectWriter::SubsectionsViaSymbols = false
protected
The documentation for this class was generated from the following files: