[llvm] [RemoveDIs] Add DPLabels support [3a/3] (PR #82633)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 10:38:53 PST 2024
================
@@ -1585,8 +1585,27 @@ static void fixupDebugInfoPostExtraction(Function &OldFunc, Function &NewFunc,
return cast<DILocalVariable>(NewVar);
};
- auto UpdateDPValuesOnInst = [&](Instruction &I) -> void {
- for (DPValue &DPV : DPValue::filter(I.getDbgValueRange())) {
+ auto UpdateDbgRecordsOnInst = [&](Instruction &I) -> void {
+ for (DbgRecord &DR : I.getDbgValueRange()) {
+ if (DPLabel *DPL = dyn_cast<DPLabel>(&DR)) {
----------------
OCHyams wrote:
Yeah that looks better, done (added a `setLabel` method to `DbgLabelInst` (intrinsic version)).
https://github.com/llvm/llvm-project/pull/82633
More information about the llvm-commits
mailing list