Skip to content

Commit 399fc66

Browse files
committed
Fix post-rebase errors
1 parent 26b5152 commit 399fc66

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

llvm/lib/Bitcode/Reader/MetadataLoader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,9 @@ class MetadataLoader::MetadataLoaderImpl {
621621

622622
for (auto &BB : F)
623623
for (auto &I : BB) {
624-
for (DPValue &DPV : filterDbgVars(I.getDbgRecordRange())) {
625-
if (DPV.isDbgDeclare())
626-
UpdateDeclareIfNeeded(&DPV);
624+
for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) {
625+
if (DVR.isDbgDeclare())
626+
UpdateDeclareIfNeeded(&DVR);
627627
}
628628
if (auto *DDI = dyn_cast<DbgDeclareInst>(&I))
629629
UpdateDeclareIfNeeded(DDI);

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ static bool upgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
10671067
}
10681068
}
10691069
// Update llvm.dbg.addr intrinsics even in "new debug mode"; they'll get
1070-
// converted to DPValues later.
1070+
// converted to DbgVariableRecords later.
10711071
if (Name == "addr" || (Name == "value" && F->arg_size() == 4)) {
10721072
rename(F);
10731073
NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::dbg_value);
@@ -2360,21 +2360,21 @@ static void upgradeDbgIntrinsicToDbgRecord(StringRef Name, CallBase *CI) {
23602360
if (Name == "label") {
23612361
DR = new DPLabel(unwrapMAVOp<DILabel>(CI, 0), CI->getDebugLoc());
23622362
} else if (Name == "assign") {
2363-
DR = new DPValue(
2363+
DR = new DbgVariableRecord(
23642364
unwrapMAVOp<Metadata>(CI, 0), unwrapMAVOp<DILocalVariable>(CI, 1),
23652365
unwrapMAVOp<DIExpression>(CI, 2), unwrapMAVOp<DIAssignID>(CI, 3),
23662366
unwrapMAVOp<Metadata>(CI, 4), unwrapMAVOp<DIExpression>(CI, 5),
23672367
CI->getDebugLoc());
23682368
} else if (Name == "declare") {
2369-
DR = new DPValue(unwrapMAVOp<Metadata>(CI, 0),
2369+
DR = new DbgVariableRecord(unwrapMAVOp<Metadata>(CI, 0),
23702370
unwrapMAVOp<DILocalVariable>(CI, 1),
23712371
unwrapMAVOp<DIExpression>(CI, 2), CI->getDebugLoc(),
2372-
DPValue::LocationType::Declare);
2372+
DbgVariableRecord::LocationType::Declare);
23732373
} else if (Name == "addr") {
23742374
// Upgrade dbg.addr to dbg.value with DW_OP_deref.
23752375
DIExpression *Expr = unwrapMAVOp<DIExpression>(CI, 2);
23762376
Expr = DIExpression::append(Expr, dwarf::DW_OP_deref);
2377-
DR = new DPValue(unwrapMAVOp<Metadata>(CI, 0),
2377+
DR = new DbgVariableRecord(unwrapMAVOp<Metadata>(CI, 0),
23782378
unwrapMAVOp<DILocalVariable>(CI, 1), Expr,
23792379
CI->getDebugLoc());
23802380
} else if (Name == "value") {
@@ -2389,7 +2389,7 @@ static void upgradeDbgIntrinsicToDbgRecord(StringRef Name, CallBase *CI) {
23892389
VarOp = 2;
23902390
ExprOp = 3;
23912391
}
2392-
DR = new DPValue(unwrapMAVOp<Metadata>(CI, 0),
2392+
DR = new DbgVariableRecord(unwrapMAVOp<Metadata>(CI, 0),
23932393
unwrapMAVOp<DILocalVariable>(CI, VarOp),
23942394
unwrapMAVOp<DIExpression>(CI, ExprOp), CI->getDebugLoc());
23952395
}

0 commit comments

Comments
 (0)