LLVM 22.0.0git
llvm::MCRelocationInfo Class Reference

Create MCExprs from relocations found in an object file. More...

#include "llvm/MC/MCDisassembler/MCRelocationInfo.h"

Public Member Functions

 MCRelocationInfo (MCContext &Ctx)
 MCRelocationInfo (const MCRelocationInfo &)=delete
MCRelocationInfooperator= (const MCRelocationInfo &)=delete
virtual ~MCRelocationInfo ()
virtual const MCExprcreateExprForCAPIVariantKind (const MCExpr *SubExpr, unsigned VariantKind)
 Create an MCExpr for the target-specific VariantKind.

Protected Attributes

MCContextCtx

Detailed Description

Create MCExprs from relocations found in an object file.

Definition at line 26 of file MCRelocationInfo.h.

Constructor & Destructor Documentation

◆ MCRelocationInfo() [1/2]

MCRelocationInfo::MCRelocationInfo ( MCContext & Ctx)

Definition at line 15 of file MCRelocationInfo.cpp.

References Ctx.

Referenced by MCRelocationInfo(), and operator=().

◆ MCRelocationInfo() [2/2]

llvm::MCRelocationInfo::MCRelocationInfo ( const MCRelocationInfo & )
delete

References MCRelocationInfo().

◆ ~MCRelocationInfo()

MCRelocationInfo::~MCRelocationInfo ( )
virtualdefault

Member Function Documentation

◆ createExprForCAPIVariantKind()

const MCExpr * MCRelocationInfo::createExprForCAPIVariantKind ( const MCExpr * SubExpr,
unsigned VariantKind )
virtual

Create an MCExpr for the target-specific VariantKind.

The VariantKinds are defined in llvm-c/Disassembler.h. Used by MCExternalSymbolizer.

Returns
If possible, an MCExpr corresponding to VariantKind, else 0.

Definition at line 20 of file MCRelocationInfo.cpp.

References LLVMDisassembler_VariantKind_None.

Referenced by ~MCRelocationInfo().

◆ operator=()

MCRelocationInfo & llvm::MCRelocationInfo::operator= ( const MCRelocationInfo & )
delete

References MCRelocationInfo().

Member Data Documentation

◆ Ctx

MCContext& llvm::MCRelocationInfo::Ctx
protected

Definition at line 28 of file MCRelocationInfo.h.

Referenced by MCRelocationInfo().


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