LLVM 23.0.0git
RISCVMachObjectWriter.cpp File Reference

Go to the source code of this file.

Functions

static bool canUseLocalRelocation (const MCSectionMachO &Section, const MCSymbol &Symbol, unsigned Log2Size)
static void emitRelocation (MachObjectWriter *Writer, const MCFragment *Fragment, uint32_t FixupOffset, const MCSymbol *RelSymbol, unsigned Index, bool IsPCRel, unsigned Log2Size, unsigned Type)
static bool checkSymbolBase (const MCSymbol *Base, const MCSymbol *Symbol, const MCFixup &Fixup, MCAssembler &Asm)
template<unsigned Bits>
static bool isValidInt (const uint64_t &FixedValue, const char *Msg, MCAssembler &Asm, const SMLoc Loc)
const MCFixupgetPCRelHiFixup (const MCSpecifierExpr &Expr, const MCFragment **DFOut)

Function Documentation

◆ canUseLocalRelocation()

◆ checkSymbolBase()

bool checkSymbolBase ( const MCSymbol * Base,
const MCSymbol * Symbol,
const MCFixup & Fixup,
MCAssembler & Asm )
static

Definition at line 151 of file RISCVMachObjectWriter.cpp.

References llvm::sampleprof::Base, and Fixup.

◆ emitRelocation()

void emitRelocation ( MachObjectWriter * Writer,
const MCFragment * Fragment,
uint32_t FixupOffset,
const MCSymbol * RelSymbol,
unsigned Index,
bool IsPCRel,
unsigned Log2Size,
unsigned Type )
static

◆ getPCRelHiFixup()

◆ isValidInt()

template<unsigned Bits>
bool isValidInt ( const uint64_t & FixedValue,
const char * Msg,
MCAssembler & Asm,
const SMLoc Loc )
static

Definition at line 164 of file RISCVMachObjectWriter.cpp.

References llvm::isInt().