Inserts a dbg.value record before a load of an alloca'd value that has an associated dbg.declare record.

Synopsis

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

void
ConvertDebugDeclareToDebugValue(
    DbgVariableRecord* DVR,
    LoadInst* LI,
    DIBuilder& Builder);

Parameters

Name

Description

DVR

Record of a variable value‐assignment, aka a non instruction representation of the dbg.value intrinsic.

LI

An instruction for reading from memory. This uses the SubclassData field in Value to store whether or not the load is volatile.

Created with MrDocs