]> Cypherpunks repositories - gostls13.git/commit
cmd: simplify some handling of package paths
authorMatthew Dempsky <mdempsky@google.com>
Sun, 27 Aug 2023 02:06:33 +0000 (19:06 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 29 Aug 2023 07:48:38 +0000 (07:48 +0000)
commiteaae2d45c76d2d27e1b4c39ba57dd1582ab26491
tree956a7ba7e6a51bf3dad503d1f1b5eacf8763388f
parentf7f1c4f86d72bac49cfd30fc94ec62756d951245
cmd: simplify some handling of package paths

We have obj.Link.Pkgpath, so we don't need to pass it redundantly in
places where we already have an *obj.Link.

Also, renaming the parser's "compilingRuntime" field to "allowABI", to
match the "AllowAsmABI" name used by objabi.LookupPkgSpecial.

Finally, push the handling of GOEXPERIMENT_* flags up to cmd/asm's
main entry point, by simply appending them to flags.D.

Change-Id: I6ada134522b0cbc90d35bcb145fbe045338fefb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/523297
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
16 files changed:
src/cmd/asm/internal/asm/endtoend_test.go
src/cmd/asm/internal/asm/expr_test.go
src/cmd/asm/internal/asm/line_test.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/parse.go
src/cmd/asm/internal/asm/pseudo_test.go
src/cmd/asm/internal/lex/input.go
src/cmd/asm/internal/lex/lex.go
src/cmd/asm/internal/lex/lex_test.go
src/cmd/asm/main.go
src/cmd/compile/internal/dwarfgen/dwinl.go
src/cmd/compile/internal/gc/obj.go
src/cmd/compile/internal/objw/prog.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/obj/dwarf.go
src/cmd/internal/obj/plist.go