]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add mode to collect symbol ABIs
authorAustin Clements <austin@google.com>
Fri, 19 Oct 2018 20:24:59 +0000 (16:24 -0400)
committerAustin Clements <austin@google.com>
Mon, 12 Nov 2018 20:46:33 +0000 (20:46 +0000)
commitba2e8a629b36e43cc27b23470b631a1dfee0900f
treec266ff31c4e0b9f4a18f5d1ac55afe2d580c456e
parent52b222055908a3ae23c2a9185e53919fe56b54db
cmd/asm: add mode to collect symbol ABIs

This adds a -symabis flag that runs the assembler in a special mode
that outputs symbol definition and reference ABIs rather than
assembling the code. This uses a fast and somewhat lax parser because
the go_asm.h definitions may not be available.

For #27539.

Change-Id: I248ba0ebab7cc75dcb2a90e82a82eb445da7e88e
Reviewed-on: https://go-review.googlesource.com/c/147098
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/parse.go
src/cmd/asm/internal/flags/flags.go
src/cmd/asm/main.go