llvm::RemapSourceAtom

Remap the source-location atom of instruction I.

Synopsis

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

void
RemapSourceAtom(
    Instruction* I,
    ValueToValueMapTy& VM);

Description

Called by RemapInstruction. This updates the instruction's atom group number if it has been mapped (e.g. with llvm::mapAtomInstance), which is necessary to distinguish source code atoms on duplicated code paths.

Parameters

NameDescription
IInstruction whose debug-location atom may be remapped.
VMValue map that may contain a mapped atom instance.