aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm/internal/flags
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2015-02-24 14:28:49 -0800
committerRob Pike <r@golang.org>2015-02-25 17:10:37 +0000
commit4100f7d95c0b51bc366103f91c9c9cad223c4168 (patch)
treee81d7a5dc1bda1c873d52701dd387c2836ac5cc3 /src/cmd/asm/internal/flags
parent3e9e9b48223b2dcabf1d861af9904940bdbff929 (diff)
downloadgo-4100f7d95c0b51bc366103f91c9c9cad223c4168.tar.xz
cmd/go: make asm the first assembler
verifyAsm is still on, but this CL changes the order to asm then 6a. Before, it was 6a then asm, but that meant that any bugs in asm for bad input would be prevented from happening because 6a would catch them. Now asm gets first crack, as it must. Also implement the -trimpath flag in asm. It's necessary and trivial. Change-Id: Ifb2ab870de1aa1b53dec76a78ac697a0d36fa80a Reviewed-on: https://go-review.googlesource.com/5850 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/asm/internal/flags')
-rw-r--r--src/cmd/asm/internal/flags/flags.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/asm/internal/flags/flags.go b/src/cmd/asm/internal/flags/flags.go
index df0049faa6..12bd585413 100644
--- a/src/cmd/asm/internal/flags/flags.go
+++ b/src/cmd/asm/internal/flags/flags.go
@@ -17,7 +17,7 @@ var (
Debug = flag.Bool("debug", false, "dump instructions as they are parsed")
OutputFile = flag.String("o", "", "output file; default foo.6 for /a/b/c/foo.s on amd64")
PrintOut = flag.Bool("S", false, "print assembly and machine code")
- TrimPath = flag.String("trimpath", "", "remove prefix from recorded source file paths (unused TODO)")
+ TrimPath = flag.String("trimpath", "", "remove prefix from recorded source file paths")
)
var (