@@ -1067,7 +1067,7 @@ static bool upgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
1067
1067
}
1068
1068
}
1069
1069
// Update llvm.dbg.addr intrinsics even in "new debug mode"; they'll get
1070
- // converted to DPValues later.
1070
+ // converted to DbgVariableRecords later.
1071
1071
if (Name == " addr" || (Name == " value" && F->arg_size () == 4 )) {
1072
1072
rename (F);
1073
1073
NewFn = Intrinsic::getDeclaration (F->getParent (), Intrinsic::dbg_value);
@@ -2360,21 +2360,21 @@ static void upgradeDbgIntrinsicToDbgRecord(StringRef Name, CallBase *CI) {
2360
2360
if (Name == " label" ) {
2361
2361
DR = new DPLabel (unwrapMAVOp<DILabel>(CI, 0 ), CI->getDebugLoc ());
2362
2362
} else if (Name == " assign" ) {
2363
- DR = new DPValue (
2363
+ DR = new DbgVariableRecord (
2364
2364
unwrapMAVOp<Metadata>(CI, 0 ), unwrapMAVOp<DILocalVariable>(CI, 1 ),
2365
2365
unwrapMAVOp<DIExpression>(CI, 2 ), unwrapMAVOp<DIAssignID>(CI, 3 ),
2366
2366
unwrapMAVOp<Metadata>(CI, 4 ), unwrapMAVOp<DIExpression>(CI, 5 ),
2367
2367
CI->getDebugLoc ());
2368
2368
} else if (Name == " declare" ) {
2369
- DR = new DPValue (unwrapMAVOp<Metadata>(CI, 0 ),
2369
+ DR = new DbgVariableRecord (unwrapMAVOp<Metadata>(CI, 0 ),
2370
2370
unwrapMAVOp<DILocalVariable>(CI, 1 ),
2371
2371
unwrapMAVOp<DIExpression>(CI, 2 ), CI->getDebugLoc (),
2372
- DPValue ::LocationType::Declare);
2372
+ DbgVariableRecord ::LocationType::Declare);
2373
2373
} else if (Name == " addr" ) {
2374
2374
// Upgrade dbg.addr to dbg.value with DW_OP_deref.
2375
2375
DIExpression *Expr = unwrapMAVOp<DIExpression>(CI, 2 );
2376
2376
Expr = DIExpression::append (Expr, dwarf::DW_OP_deref);
2377
- DR = new DPValue (unwrapMAVOp<Metadata>(CI, 0 ),
2377
+ DR = new DbgVariableRecord (unwrapMAVOp<Metadata>(CI, 0 ),
2378
2378
unwrapMAVOp<DILocalVariable>(CI, 1 ), Expr,
2379
2379
CI->getDebugLoc ());
2380
2380
} else if (Name == " value" ) {
@@ -2389,7 +2389,7 @@ static void upgradeDbgIntrinsicToDbgRecord(StringRef Name, CallBase *CI) {
2389
2389
VarOp = 2 ;
2390
2390
ExprOp = 3 ;
2391
2391
}
2392
- DR = new DPValue (unwrapMAVOp<Metadata>(CI, 0 ),
2392
+ DR = new DbgVariableRecord (unwrapMAVOp<Metadata>(CI, 0 ),
2393
2393
unwrapMAVOp<DILocalVariable>(CI, VarOp),
2394
2394
unwrapMAVOp<DIExpression>(CI, ExprOp), CI->getDebugLoc ());
2395
2395
}
0 commit comments