LLVM 20.0.0git
Public Member Functions | List of all members
llvm::XCOFFObjectWriter Class Referenceabstract

#include "llvm/MC/MCXCOFFObjectWriter.h"

Inheritance diagram for llvm::XCOFFObjectWriter:
Inheritance graph
[legend]

Public Member Functions

virtual void addExceptionEntry (const MCSymbol *Symbol, const MCSymbol *Trap, unsigned LanguageCode, unsigned ReasonCode, unsigned FunctionSize, bool hasDebug)=0
 
virtual void addCInfoSymEntry (StringRef Name, StringRef Metadata)=0
 
StringRef getCPUType () const
 
void setCPU (StringRef TargetCPU)
 
- Public Member Functions inherited from llvm::MCObjectWriter
 MCObjectWriter (const MCObjectWriter &)=delete
 
MCObjectWriteroperator= (const MCObjectWriter &)=delete
 
virtual ~MCObjectWriter ()
 
virtual void reset ()
 lifetime management
 
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.
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::MCObjectWriter
 MCObjectWriter ()=default
 
- Protected Attributes inherited from llvm::MCObjectWriter
SmallVector< std::pair< std::string, size_t >, 0 > FileNames
 List of declared file names.
 
std::string CompilerVersion
 
std::vector< const MCSymbol * > AddrsigSyms
 
bool EmitAddrsigSection = false
 
bool SubsectionsViaSymbols = false
 
SmallVector< CGProfileEntry, 0 > CGProfile
 

Detailed Description

Definition at line 42 of file MCXCOFFObjectWriter.h.

Member Function Documentation

◆ addCInfoSymEntry()

virtual void llvm::XCOFFObjectWriter::addCInfoSymEntry ( StringRef  Name,
StringRef  Metadata 
)
pure virtual

◆ addExceptionEntry()

virtual void llvm::XCOFFObjectWriter::addExceptionEntry ( const MCSymbol Symbol,
const MCSymbol Trap,
unsigned  LanguageCode,
unsigned  ReasonCode,
unsigned  FunctionSize,
bool  hasDebug 
)
pure virtual

◆ getCPUType()

StringRef llvm::XCOFFObjectWriter::getCPUType ( ) const
inline

Definition at line 51 of file MCXCOFFObjectWriter.h.

◆ setCPU()

void llvm::XCOFFObjectWriter::setCPU ( StringRef  TargetCPU)
inline

Definition at line 52 of file MCXCOFFObjectWriter.h.


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