[A64/Emitter] Mark Emit counters unused

- Silence unused block/instruction counters in debug paths
This commit is contained in:
Will Martin
2026-01-21 10:37:39 +09:00
parent 7bc540d07a
commit 8a915746ab
+2
View File
@@ -306,6 +306,7 @@ bool A64Emitter::Emit(HIRBuilder* builder, EmitFunctionInfo& func_info) {
// Body.
auto block = builder->first_block();
[[maybe_unused]] int block_count = 0;
while (block) {
// Mark block labels.
auto label = block->label_head;
@@ -316,6 +317,7 @@ bool A64Emitter::Emit(HIRBuilder* builder, EmitFunctionInfo& func_info) {
// Process instructions.
const Instr* instr = block->instr_head;
[[maybe_unused]] int instr_count = 0;
while (instr) {
const Instr* new_tail = instr;
if (!SelectSequence(this, instr, &new_tail)) {