@@ -282,7 +282,7 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
282282 Declare,
283283 Value,
284284 Assign,
285- CoroFrameEntry ,
285+ DeclareValue ,
286286
287287 End, // /< Marks the end of the concrete types.
288288 Any, // /< To indicate all LocationTypes in searches.
@@ -366,12 +366,11 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
366366 const DILocation *DI, DbgVariableRecord &InsertBefore);
367367
368368 LLVM_ABI static DbgVariableRecord *
369- createDVRCoroFrameEntry (Value *Address, DILocalVariable *DV,
370- DIExpression *Expr, const DILocation *DI);
369+ createDVRDeclareValue (Value *Address, DILocalVariable *DV, DIExpression *Expr ,
370+ const DILocation *DI);
371371 LLVM_ABI static DbgVariableRecord *
372- createDVRCoroFrameEntry (Value *Address, DILocalVariable *DV,
373- DIExpression *Expr, const DILocation *DI,
374- DbgVariableRecord &InsertBefore);
372+ createDVRDeclareValue (Value *Address, DILocalVariable *DV, DIExpression *Expr,
373+ const DILocation *DI, DbgVariableRecord &InsertBefore);
375374
376375 // / Iterator for ValueAsMetadata that internally uses direct pointer iteration
377376 // / over either a ValueAsMetadata* or a ValueAsMetadata**, dereferencing to the
@@ -423,9 +422,7 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
423422
424423 bool isDbgDeclare () const { return Type == LocationType::Declare; }
425424 bool isDbgValue () const { return Type == LocationType::Value; }
426- bool isDbgCoroFrameEntry () const {
427- return Type == LocationType::CoroFrameEntry;
428- }
425+ bool isDbgDeclareValue () const { return Type == LocationType::DeclareValue; }
429426
430427 // / Get the locations corresponding to the variable referenced by the debug
431428 // / info intrinsic. Depending on the intrinsic, this could be the
@@ -451,12 +448,16 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
451448 bool hasValidLocation () const { return getVariableLocationOp (0 ) != nullptr ; }
452449
453450 // / Does this describe the address of a local variable. True for dbg.addr
454- // / and dbg.declare, but not dbg.value, which describes its value.
451+ // / and dbg.declare, but not dbg.value or dbg.declare_value, which describes
452+ // / its value.
455453 bool isAddressOfVariable () const { return Type == LocationType::Declare; }
456454
457455 // / Determine if this describes the value of a local variable. It is false for
458- // / dbg.declare, but true for dbg.value, which describes its value.
459- bool isValueOfVariable () const { return Type == LocationType::Value; }
456+ // / dbg.declare, but true for dbg.value and dbg.declare_value, which describes
457+ // / its value.
458+ bool isValueOfVariable () const {
459+ return Type == LocationType::Value || Type == LocationType::DeclareValue;
460+ }
460461
461462 LocationType getType () const { return Type; }
462463
0 commit comments