[RemoveDIs][NFC] Rename DPLabel->DbgLabelRecord (#85918)
This patch renames DPLabel to DbgLabelRecord, in accordance with the ongoing DbgRecord rename. This rename was fairly trivial, since DPLabel isn't as widely used as DPValue and has no real conflicts in either its full or abbreviated name. As usual, the entire replacement was done automatically, with `s/DPLabel/DbgLabelRecord/` and `s/DPL/DLR/`.
This commit is contained in:
1 parent
6c1d4454ad
commit
bdc77d1ecc
20 files changed
+97
-89
No files matched your search
@@ -6426,14 +6426,15 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
|
||||
break;
|
||||
}
|
||||
case bitc::FUNC_CODE_DEBUG_RECORD_LABEL: {
|
||||
// DPLabels are placed after the Instructions that they are attached to.
|
||||
// DbgLabelRecords are placed after the Instructions that they are
|
||||
// attached to.
|
||||
Instruction *Inst = getLastInstruction();
|
||||
if (!Inst)
|
||||
return error("Invalid dbg record: missing instruction");
|
||||
DILocation *DIL = cast<DILocation>(getFnMetadataByID(Record[0]));
|
||||
DILabel *Label = cast<DILabel>(getFnMetadataByID(Record[1]));
|
||||
Inst->getParent()->insertDbgRecordBefore(
|
||||
new DPLabel(Label, DebugLoc(DIL)), Inst->getIterator());
|
||||
new DbgLabelRecord(Label, DebugLoc(DIL)), Inst->getIterator());
|
||||
continue; // This isn't an instruction.
|
||||
}
|
||||
case bitc::FUNC_CODE_DEBUG_RECORD_VALUE_SIMPLE:
|
||||
|
||||
Reference in new issue
Block a user