From 30b0558c4365339264d41d46ad82f3916fa7a47d Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 8 Jan 2024 08:55:20 -0800 Subject: [PATCH] fix Signed-off-by: Takeshi Yoneda --- internal/engine/wazevo/backend/isa/amd64/instr.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/internal/engine/wazevo/backend/isa/amd64/instr.go b/internal/engine/wazevo/backend/isa/amd64/instr.go index e280147da9..a444c322ce 100644 --- a/internal/engine/wazevo/backend/isa/amd64/instr.go +++ b/internal/engine/wazevo/backend/isa/amd64/instr.go @@ -20,6 +20,9 @@ func (i *instruction) Prev() regalloc.Instr { return i.prev } +// AddedBeforeRegAlloc implements regalloc.Instr. +func (i *instruction) AddedBeforeRegAlloc() bool { return i.addedBeforeRegAlloc } + // String implements regalloc.Instr. func (i *instruction) String() string { // TODO implement me @@ -74,12 +77,6 @@ func (i *instruction) IsReturn() bool { panic("implement me") } -// AddedBeforeRegAlloc implements regalloc.Instr. -func (i *instruction) AddedBeforeRegAlloc() bool { - // TODO implement me - panic("implement me") -} - func resetInstruction(i *instruction) { *i = instruction{} }