Salvage debug records that use an instruction before it is deleted.
Synopsis
Declared in <llvm/Transforms/Utils/Local.h>
void
salvageDebugInfo(Instruction& I);
Description
Salvage debug records that use I before the instruction is deleted. Rewrite those uses in terms of its operands where we can, and encode the instruction's effect in the record's DIExpression. Deleting the instruction replaces any remaining debug‐record uses with poison.
Parameters
Name |
Description |
I |
Instruction about to be deleted whose debug uses may be salvaged. |
Created with MrDocs