Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions ir/encoding/x86_64/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func encode_IR_Function(i *expr.IR_Function, ctx *IR_Context, target lib.Operand
}

func encode_IR_Function_for_DataSection(b *expr.IR_Function, ctx *IR_Context, segments *Segments) error {

// TODO: restore rbx, rbp, r12-r15
targets := []*encoding.Register{encoding.Rdi, encoding.Rsi, encoding.Rdx, encoding.R10, encoding.R8, encoding.R9}
returnTarget := encoding.Rax
Expand Down Expand Up @@ -48,9 +47,9 @@ func encode_IR_Function_for_DataSection(b *expr.IR_Function, ctx *IR_Context, se
if err != nil {
return err
}
for _, i := range instr {
fmt.Println(i)
}
// for _, i := range instr {
// log.Println(i)
// }
bytes, err := lib.Instructions(instr).Encode()
if err != nil {
return err
Expand Down
Loading