Added label type
This commit is contained in:
parent
f4b0020c49
commit
14a867bc8b
32 changed files with 102 additions and 63 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
// JumpIfTrue jumps to the label if the previous comparison was true.
|
||||
func (f *Function) JumpIfTrue(operator token.Kind, label string) {
|
||||
func (f *Function) JumpIfTrue(operator token.Kind, label asm.Label) {
|
||||
switch operator {
|
||||
case token.Equal:
|
||||
f.Jump(asm.JE, label)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue