@@ -77,7 +77,7 @@ SILValue SILGenFunction::emitSelfDeclForDestructor(VarDecl *selfDecl) {
7777 VarLocs[selfDecl] = VarLoc::get (selfValue);
7878 SILLocation PrologueLoc (selfDecl);
7979 PrologueLoc.markAsPrologue ();
80- B.createDebugValue (PrologueLoc, selfValue, dv);
80+ B.emitDebugDescription (PrologueLoc, selfValue, dv);
8181 return selfValue;
8282}
8383
@@ -697,7 +697,7 @@ class ArgumentInitHelper {
697697 " all paths or manually turn it off" );
698698 };
699699 auto completeUpdate = [&](ManagedValue value) -> void {
700- SGF.B .createDebugValue (loc, value.getValue (), varinfo);
700+ SGF.B .emitDebugDescription (loc, value.getValue (), varinfo);
701701 SGF.VarLocs [pd] = SILGenFunction::VarLoc::get (value.getValue ());
702702 calledCompletedUpdate = true ;
703703 };
@@ -950,7 +950,7 @@ class ArgumentInitHelper {
950950 }
951951
952952 DebugValueInst *debugInst
953- = SGF.B .createDebugValueAddr (loc, debugOperand, varinfo);
953+ = SGF.B .emitDebugDescription (loc, debugOperand, varinfo);
954954
955955 if (argrv.getValue () != debugOperand) {
956956 if (auto valueInst =
@@ -1001,9 +1001,9 @@ class ArgumentInitHelper {
10011001 // Emit debug information for the argument.
10021002 SILDebugVariable DebugVar (PD->isLet (), ArgNo);
10031003 if (argrv.getType ().isAddress ())
1004- SGF.B .createDebugValueAddr (loc, argrv.getValue (), DebugVar);
1004+ SGF.B .emitDebugDescription (loc, argrv.getValue (), DebugVar);
10051005 else
1006- SGF.B .createDebugValue (loc, argrv.getValue (), DebugVar);
1006+ SGF.B .emitDebugDescription (loc, argrv.getValue (), DebugVar);
10071007 }
10081008};
10091009} // end anonymous namespace
@@ -1265,9 +1265,9 @@ static void emitCaptureArguments(SILGenFunction &SGF,
12651265 if (auto *AllocStack = dyn_cast<AllocStackInst>(arg)) {
12661266 AllocStack->setArgNo (ArgNo);
12671267 } else if (box || ty.isAddress ()) {
1268- SGF.B .createDebugValueAddr (Loc, arg, DbgVar);
1268+ SGF.B .emitDebugDescription (Loc, arg, DbgVar);
12691269 } else {
1270- SGF.B .createDebugValue (Loc, arg, DbgVar);
1270+ SGF.B .emitDebugDescription (Loc, arg, DbgVar);
12711271 }
12721272}
12731273
@@ -1537,7 +1537,7 @@ uint16_t SILGenFunction::emitBasicProlog(
15371537 RegularLocation loc = RegularLocation::getAutoGeneratedLocation ();
15381538 if (throwsLoc.isValid ())
15391539 loc = throwsLoc;
1540- B.createDebugValue (loc, undef.getValue (), dbgVar);
1540+ B.emitDebugDescription (loc, undef.getValue (), dbgVar);
15411541 }
15421542
15431543 for (auto &i : *B.getInsertionBB ()) {
0 commit comments