diff options
| author | Austin Clements <austin@google.com> | 2023-04-17 15:58:47 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-21 19:28:46 +0000 |
| commit | 2668a190baa302a1fd7e22285cdb343af67530ad (patch) | |
| tree | 69acceac86690215d5fbade82faaff2bf4fbfa9c /src/cmd/internal/obj/objfile.go | |
| parent | 9754521157caffde83f630410781abd9e35f18d5 (diff) | |
| download | go-2668a190baa302a1fd7e22285cdb343af67530ad.tar.xz | |
internal/abi, runtime, cmd: merge funcFlag_* consts into internal/abi
For #59670.
Change-Id: Ie784ba4dd2701e4f455e1abde4a6bfebee4b1387
Reviewed-on: https://go-review.googlesource.com/c/go/+/485496
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
Auto-Submit: Austin Clements <austin@google.com>
Diffstat (limited to 'src/cmd/internal/obj/objfile.go')
| -rw-r--r-- | src/cmd/internal/obj/objfile.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go index 1e9e5a827b..a9ddf0edf1 100644 --- a/src/cmd/internal/obj/objfile.go +++ b/src/cmd/internal/obj/objfile.go @@ -15,6 +15,7 @@ import ( "cmd/internal/sys" "encoding/binary" "fmt" + "internal/abi" "io" "log" "os" @@ -841,10 +842,10 @@ func (ctxt *Link) writeSymDebugNamed(s *LSym, name string) { if s.NoSplit() { fmt.Fprintf(ctxt.Bso, "nosplit ") } - if s.Func() != nil && s.Func().FuncFlag&objabi.FuncFlag_TOPFRAME != 0 { + if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagTopFrame != 0 { fmt.Fprintf(ctxt.Bso, "topframe ") } - if s.Func() != nil && s.Func().FuncFlag&objabi.FuncFlag_ASM != 0 { + if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagAsm != 0 { fmt.Fprintf(ctxt.Bso, "asm ") } fmt.Fprintf(ctxt.Bso, "size=%d", s.Size) |
