Replaces dbg.declare record when the address it describes is replaced with a new value. If Deref is true, an additional DW_OP_deref is prepended to the expression. If Offset is non‐zero, a constant displacement is added to the expression (between the optional Deref operations). Offset can be negative.

Synopsis

Declared in <llvm/Transforms/Utils/Local.h>

bool
replaceDbgDeclare(
    Value* Address,
    Value* NewAddress,
    DIBuilder& Builder,
    uint8_t DIExprFlags,
    int Offset);

Parameters

Name

Description

Address

LLVM Value Representation

NewAddress

LLVM Value Representation

Created with MrDocs