LIEF: Library to Instrument Executable Formats Version 2.0.0
Loading...
Searching...
No Matches
LIEF::dwarf::editor::Function::Parameter Class Reference

This class represents a parameter of the current function (DW_TAG_formal_parameter). More...

#include <Function.hpp>

Public Member Functions

 Parameter ()=delete
 Parameter (std::unique_ptr< details::FunctionParameter > impl)
 ~Parameter ()
Parameter & set_location (const dwarf::Location &location)
 Set the DW_AT_location of this parameter.
Parameter & assign_register (std::string_view name)
 Assign this parameter to a specific named register.
Parameter & assign_register (uint64_t reg)
 Assign this parameter to the given DWARF register id (e.g. DW_OP_reg0).

Detailed Description

This class represents a parameter of the current function (DW_TAG_formal_parameter).

Constructor & Destructor Documentation

◆ Parameter() [1/2]

LIEF::dwarf::editor::Function::Parameter::Parameter ( )
delete

◆ Parameter() [2/2]

LIEF::dwarf::editor::Function::Parameter::Parameter ( std::unique_ptr< details::FunctionParameter > impl)

◆ ~Parameter()

LIEF::dwarf::editor::Function::Parameter::~Parameter ( )

Member Function Documentation

◆ assign_register() [1/2]

Parameter & LIEF::dwarf::editor::Function::Parameter::assign_register ( std::string_view name)

Assign this parameter to a specific named register.

References LIEF_LIFETIMEBOUND, and Parameter().

◆ assign_register() [2/2]

Parameter & LIEF::dwarf::editor::Function::Parameter::assign_register ( uint64_t reg)

Assign this parameter to the given DWARF register id (e.g. DW_OP_reg0).

References LIEF_LIFETIMEBOUND, and Parameter().

◆ set_location()

Parameter & LIEF::dwarf::editor::Function::Parameter::set_location ( const dwarf::Location & location)

Set the DW_AT_location of this parameter.

References LIEF_LIFETIMEBOUND, and Parameter().


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