[Assignment Tracking][5.1/*] Add deleteAssignmentMarkers function
authorOCHyams <orlando.hyams@sony.com>
Mon, 7 Nov 2022 12:47:11 +0000 (12:47 +0000)
committerOCHyams <orlando.hyams@sony.com>
Mon, 7 Nov 2022 14:56:36 +0000 (14:56 +0000)
commit4c44fa1c3829c2d0c6ce10b576dafbc2e0631d47
tree5a6fcf36ea19ed955e01d66256bbd1c23618be5c
parent12a6572d41f195a5765b49322b46b246c30759fc
[Assignment Tracking][5.1/*] Add deleteAssignmentMarkers function

deleteAssignmentMarkers(const Instruction *Inst) does exactly as you'd expect -
it deletes any dbg.assign intrinsics linked to Inst.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D133576
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/IR/DebugInfo.cpp
llvm/unittests/IR/DebugInfoTest.cpp