LLVM 22.0.0git
llvm::MCValue Class Reference

#include "llvm/MC/MCValue.h"

Public Member Functions

 MCValue ()=default
int64_t getConstant () const
void setConstant (int64_t C)
uint32_t getSpecifier () const
void setSpecifier (uint32_t S)
const MCSymbolgetAddSym () const
void setAddSym (const MCSymbol *A)
const MCSymbolgetSubSym () const
bool isAbsolute () const
 Is this an absolute (as opposed to relocatable) value.

Static Public Member Functions

static MCValue get (const MCSymbol *SymA, const MCSymbol *SymB=nullptr, int64_t Val=0, uint32_t Specifier=0)
static MCValue get (int64_t Val)

Friends

class MCAssembler
class MCExpr

Detailed Description

Definition at line 30 of file MCValue.h.

Constructor & Destructor Documentation

◆ MCValue()

llvm::MCValue::MCValue ( )
default

Referenced by get(), and get().

Member Function Documentation

◆ get() [1/2]

◆ get() [2/2]

MCValue llvm::MCValue::get ( int64_t Val)
inlinestatic

Definition at line 66 of file MCValue.h.

References MCValue().

◆ getAddSym()

◆ getConstant()

◆ getSpecifier()

uint32_t llvm::MCValue::getSpecifier ( ) const
inline

Definition at line 46 of file MCValue.h.

Referenced by llvm::MCExpr::evaluateAsRelocatableImpl().

◆ getSubSym()

◆ isAbsolute()

◆ setAddSym()

void llvm::MCValue::setAddSym ( const MCSymbol * A)
inline

Definition at line 50 of file MCValue.h.

References A().

◆ setConstant()

void llvm::MCValue::setConstant ( int64_t C)
inline

Definition at line 45 of file MCValue.h.

References llvm::CallingConv::C.

◆ setSpecifier()

◆ MCAssembler

friend class MCAssembler
friend

Definition at line 41 of file MCValue.h.

References MCAssembler.

Referenced by MCAssembler.

◆ MCExpr

friend class MCExpr
friend

Definition at line 42 of file MCValue.h.

References MCExpr.

Referenced by MCExpr.


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