diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-07 17:59:06 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-07 17:59:06 +0200 |
| commit | 9e0846e8a4beebff36c72f03479a7db775b5144e (patch) | |
| tree | 5be248f1b661837ea2378648676e3f0f8d5746c6 /pkg/compiler | |
| parent | 99c1f486598445575a3a624bf70dc6a31f60d365 (diff) | |
all: get rid of underscores in identifiers
Underscores are against Go coding style.
Update #538
Diffstat (limited to 'pkg/compiler')
| -rw-r--r-- | pkg/compiler/types.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/compiler/types.go b/pkg/compiler/types.go index 7c874130d..825071324 100644 --- a/pkg/compiler/types.go +++ b/pkg/compiler/types.go @@ -392,15 +392,15 @@ var typeArgTextType = &typeArg{ func genTextType(t *ast.Type) prog.TextKind { switch t.Ident { case "x86_real": - return prog.Text_x86_real + return prog.TextX86Real case "x86_16": - return prog.Text_x86_16 + return prog.TextX86bit16 case "x86_32": - return prog.Text_x86_32 + return prog.TextX86bit32 case "x86_64": - return prog.Text_x86_64 + return prog.TextX86bit64 case "arm64": - return prog.Text_arm64 + return prog.TextArm64 default: panic(fmt.Sprintf("unknown text type %q", t.Ident)) } |
