Remap the Values used in the DbgRecord DR using the value map VM.

Synopsis

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

void
RemapDbgRecord(
    Module* M,
    DbgRecord* DR,
    ValueToValueMapTy& VM,
    RemapFlags Flags = RF_None,
    ValueMapTypeRemapper* TypeMapper = nullptr,
    ValueMaterializer* Materializer = nullptr,
    MetadataPredicate const* IdentityMD = nullptr);

Parameters

Name

Description

M

Module containing the debug record.

DR

Debug record whose referenced values are remapped.

VM

Mapping from original values to remapped values.

Flags

Remapping flags that control mapper behavior.

TypeMapper

Optional callback that remaps types while mapping values.

Materializer

Optional callback that materializes unmapped values.

IdentityMD

Optional predicate for metadata that maps onto itself.

Created with MrDocs