llvm::MCValue

Represents a relocatable expression in its most general form: Specifier(SymA - SymB + Imm).

Synopsis

Declared in <llvm/MC/MCValue.h>

class MCValue;

Description

Not all targets support SymB. For PC-relative relocations, a specifier is typically used instead of setting SymB to DOT.

This class must remain a simple POD value class, as it needs to reside in unions and similar structures.

Member Functions

NameDescription
MCValue [constructor]Construct a zero absolute MCValue.
getAddSym Return the additive symbol (SymA) of this value.
getConstant Return the constant immediate of this value.
getSpecifier Return the relocation specifier of this value.
getSubSym Return the subtractive symbol (SymB) of this value.
isAbsolute Is this an absolute (as opposed to relocatable) value.
setAddSym Set the additive symbol (SymA) of this value.
setConstant Set the constant immediate of this value.
setSpecifier Set the relocation specifier of this value.

Static Member Functions

NameDescription
get get overloads

Friends

NameDescription
llvm::MCExprBase class for the full range of assembler expressions which are needed for parsing.
llvm::MCAssemblerAssembles machine-code sections, lays them out, and writes object files.