LLVM: llvm::dwarf::UnwindRow Class Reference (original) (raw)
A class that represents a single row in the unwind table that is decoded by parsing the DWARF Call Frame Information opcodes. More...
#include "[llvm/DebugInfo/DWARF/LowLevel/DWARFUnwindTable.h](DWARFUnwindTable%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| UnwindRow () | |
| bool | hasAddress () const |
| Returns true if the address is valid in this object. | |
| uint64_t | getAddress () const |
| Get the address for this row. | |
| void | setAddress (uint64_t Addr) |
| Set the address for this UnwindRow. | |
| void | slideAddress (uint64_t Offset) |
| Offset the address for this UnwindRow. | |
| UnwindLocation & | getCFAValue () |
| const UnwindLocation & | getCFAValue () const |
| RegisterLocations & | getRegisterLocations () |
| const RegisterLocations & | getRegisterLocations () const |
A class that represents a single row in the unwind table that is decoded by parsing the DWARF Call Frame Information opcodes.
The row consists of an optional address, the rule to unwind the CFA and all rules to unwind any registers. If the address doesn't have a value, this row represents the initial instructions for a CIE. If the address has a value the UnwindRow represents a row in the UnwindTable for a FDE. The address is the first address for which the CFA location and register rules are valid within a function.
UnwindRow objects are created by parsing opcodes in the DWARF Call Frame Information and UnwindRow objects are lazily populated and pushed onto a stack in the UnwindTable when evaluating this state machine. Accessors are needed for the address, CFA value, and register locations as the opcodes encode a state machine that produces a sorted array of UnwindRow objects
See also
Definition at line 231 of file DWARFUnwindTable.h.
| llvm::dwarf::UnwindRow::UnwindRow ( ) | inline |
|---|
◆ getAddress()
| uint64_t llvm::dwarf::UnwindRow::getAddress ( ) const | inline |
|---|
Get the address for this row.
Clients should only call this function after verifying it has a valid address with a call to
See also
Definition at line 248 of file DWARFUnwindTable.h.
◆ getCFAValue() [1/2]
◆ getCFAValue() [2/2]
◆ getRegisterLocations() [1/2]
◆ getRegisterLocations() [2/2]
◆ hasAddress()
| bool llvm::dwarf::UnwindRow::hasAddress ( ) const | inline |
|---|
◆ setAddress()
| void llvm::dwarf::UnwindRow::setAddress ( uint64_t Addr) | inline |
|---|
◆ slideAddress()
| void llvm::dwarf::UnwindRow::slideAddress ( uint64_t Offset) | inline |
|---|
Offset the address for this UnwindRow.
The address represents the first address for which the CFAValue and RegLocs are valid within a function. Clients must ensure that this object already has an address (
See also
hasAddress()) prior to calling this function.
Definition at line 262 of file DWARFUnwindTable.h.
References llvm::Offset.
The documentation for this class was generated from the following file:
- include/llvm/DebugInfo/DWARF/LowLevel/DWARFUnwindTable.h