aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/compiler')
-rw-r--r--pkg/compiler/types.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/compiler/types.go b/pkg/compiler/types.go
index f4452baee..777920f57 100644
--- a/pkg/compiler/types.go
+++ b/pkg/compiler/types.go
@@ -407,11 +407,13 @@ var typeText = &typeDesc{
var typeArgTextType = &typeArg{
Kind: kindIdent,
- Names: []string{"x86_real", "x86_16", "x86_32", "x86_64", "arm64"},
+ Names: []string{"target", "x86_real", "x86_16", "x86_32", "x86_64", "arm64"},
}
func genTextType(t *ast.Type) prog.TextKind {
switch t.Ident {
+ case "target":
+ return prog.TextTarget
case "x86_real":
return prog.TextX86Real
case "x86_16":