LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This class represents an editable DWARF variable which can be scoped by a function or a compilation unit (DW_TAG_variable). More...
#include <Variable.hpp>
Public Member Functions | |
Variable ()=delete | |
Variable (std::unique_ptr< details::Variable > impl) | |
Variable & | set_addr (uint64_t address) |
Set the global address of this variable. Setting this address is only revelant in the case of a static global variable. For stack variable, you should use set_stack_offset. | |
Variable & | set_stack_offset (uint64_t offset) |
Set the stack offset of this variable. | |
Variable & | set_external () |
Mark this variable as imported. | |
Variable & | set_type (const Type &type) |
Set the type of the current variable. | |
~Variable () |
This class represents an editable DWARF variable which can be scoped by a function or a compilation unit (DW_TAG_variable).
|
delete |
Referenced by set_addr(), set_external(), set_stack_offset(), and set_type().
LIEF::dwarf::editor::Variable::Variable | ( | std::unique_ptr< details::Variable > | impl | ) |
LIEF::dwarf::editor::Variable::~Variable | ( | ) |
Variable & LIEF::dwarf::editor::Variable::set_addr | ( | uint64_t | address | ) |
Set the global address of this variable. Setting this address is only revelant in the case of a static global variable. For stack variable, you should use set_stack_offset.
This function set the DW_AT_location attribute
References Variable().
Variable & LIEF::dwarf::editor::Variable::set_external | ( | ) |
Mark this variable as imported.
References Variable().
Variable & LIEF::dwarf::editor::Variable::set_stack_offset | ( | uint64_t | offset | ) |
Set the stack offset of this variable.
This function set the DW_AT_location attribute
References Variable().
Set the type of the current variable.
References Variable().