LLVM 24.0.0git
llvm::dwarf_linker::RelocationFixups::ClonedExpression Class Reference

Where the operations of an expression were cloned to. More...

#include "llvm/DWARFLinker/RelocationFixups.h"

Classes

struct  Operation

Public Member Functions

 ClonedExpression (uint64_t InputSize)
void noteCopiedBytes (uint64_t InputStart, uint64_t Size, uint64_t OutputOffset)
void noteDebugAddrOperand (uint64_t EntryOffset, uint8_t AddrSize, uint64_t OutputOffset)
void addOutputPrefix (uint64_t Size)
 Moves the operations by Size, the bytes the attribute has ahead of the expression.

Public Attributes

uint64_t InputSize
 The size of the input expression, which ends its attribute.
SmallVector< Operation, 2 > Operations

Detailed Description

Where the operations of an expression were cloned to.

An operation copied as is keeps the relocations of its bytes, while one rewritten from DW_OP_addrx or DW_OP_constx takes those of its .debug_addr entry.

Definition at line 29 of file RelocationFixups.h.

Constructor & Destructor Documentation

◆ ClonedExpression()

llvm::dwarf_linker::RelocationFixups::ClonedExpression::ClonedExpression ( uint64_t InputSize)
inlineexplicit

Definition at line 41 of file RelocationFixups.h.

References InputSize, and uint64_t.

Member Function Documentation

◆ addOutputPrefix()

void llvm::dwarf_linker::RelocationFixups::ClonedExpression::addOutputPrefix ( uint64_t Size)
inline

Moves the operations by Size, the bytes the attribute has ahead of the expression.

Definition at line 57 of file RelocationFixups.h.

References Operations, llvm::Size, and uint64_t.

◆ noteCopiedBytes()

void llvm::dwarf_linker::RelocationFixups::ClonedExpression::noteCopiedBytes ( uint64_t InputStart,
uint64_t Size,
uint64_t OutputOffset )
inline

Definition at line 43 of file RelocationFixups.h.

References llvm::dwarf_linker::DebugInfo, Operations, llvm::Size, and uint64_t.

◆ noteDebugAddrOperand()

void llvm::dwarf_linker::RelocationFixups::ClonedExpression::noteDebugAddrOperand ( uint64_t EntryOffset,
uint8_t AddrSize,
uint64_t OutputOffset )
inline

Definition at line 49 of file RelocationFixups.h.

References llvm::dwarf_linker::DebugAddr, Operations, and uint64_t.

Member Data Documentation

◆ InputSize

uint64_t llvm::dwarf_linker::RelocationFixups::ClonedExpression::InputSize

The size of the input expression, which ends its attribute.

Definition at line 63 of file RelocationFixups.h.

Referenced by ClonedExpression().

◆ Operations

SmallVector<Operation, 2> llvm::dwarf_linker::RelocationFixups::ClonedExpression::Operations

Definition at line 64 of file RelocationFixups.h.

Referenced by addOutputPrefix(), noteCopiedBytes(), and noteDebugAddrOperand().


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