| 49 | constexpr uint32_t kDebugLocalVariableOperandFlagsIndex = 10; |
| 50 | |
| 51 | void SetInlinedOperand(Instruction* dbg_inlined_at, uint32_t inlined_operand) { |
| 52 | assert(dbg_inlined_at); |
| 53 | assert(dbg_inlined_at->GetCommonDebugOpcode() == |
| 54 | CommonDebugInfoDebugInlinedAt); |
| 55 | if (dbg_inlined_at->NumOperands() <= kDebugInlinedAtOperandInlinedIndex) { |
| 56 | dbg_inlined_at->AddOperand( |
| 57 | {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {inlined_operand}}); |
| 58 | } else { |
| 59 | dbg_inlined_at->SetOperand(kDebugInlinedAtOperandInlinedIndex, |
| 60 | {inlined_operand}); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | uint32_t GetInlinedOperand(Instruction* dbg_inlined_at) { |
| 65 | assert(dbg_inlined_at); |
no test coverage detected