LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::assembly::x86::operands::PCRelative Class Reference

This class represents a RIP/EIP-relative operand. More...

#include <PCRelative.hpp>

Inheritance diagram for LIEF::assembly::x86::operands::PCRelative:
Collaboration diagram for LIEF::assembly::x86::operands::PCRelative:

Public Member Functions

int64_t value () const
 The effective value that is relative to the current rip/eip register.
 
 ~PCRelative () override=default
 
- Public Member Functions inherited from LIEF::assembly::x86::Operand
std::string to_string () const
 Pretty representation of the operand.
 
template<class T >
const T * as () const
 This function can be used to down cast an Operand instance:
 
virtual ~Operand ()
 

Static Public Member Functions

static bool classof (const Operand *op)
 

Detailed Description

This class represents a RIP/EIP-relative operand.

For instance:

jmp 67633;
|
+----------> PCRelative(67633)

Constructor & Destructor Documentation

◆ ~PCRelative()

LIEF::assembly::x86::operands::PCRelative::~PCRelative ( )
overridedefault

Member Function Documentation

◆ classof()

static bool LIEF::assembly::x86::operands::PCRelative::classof ( const Operand * op)
static

◆ value()

int64_t LIEF::assembly::x86::operands::PCRelative::value ( ) const

The effective value that is relative to the current rip/eip register.


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