Added label type
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
|
||||
"git.urbach.dev/cli/q/src/asm"
|
||||
"git.urbach.dev/cli/q/src/errors"
|
||||
"git.urbach.dev/cli/q/src/eval"
|
||||
"git.urbach.dev/cli/q/src/token"
|
||||
@ -48,8 +49,11 @@ func (f *Function) EvaluateToken(t token.Token) (eval.Value, error) {
|
||||
f.Dependencies = append(f.Dependencies, function)
|
||||
|
||||
value := &eval.Label{
|
||||
Typ: types.AnyPointer,
|
||||
Label: function.UniqueName,
|
||||
Typ: types.AnyPointer,
|
||||
Label: asm.Label{
|
||||
Name: function.UniqueName,
|
||||
Type: asm.FunctionLabel,
|
||||
},
|
||||
}
|
||||
|
||||
return value, nil
|
||||
|
Reference in New Issue
Block a user