]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: rewrite parsing of TEXT $3-2
authorRob Pike <r@golang.org>
Tue, 27 Jan 2015 19:43:33 +0000 (11:43 -0800)
committerRob Pike <r@golang.org>
Wed, 28 Jan 2015 18:17:13 +0000 (18:17 +0000)
commit92e5120c772fd92432fd05e271f6a6b380f22550
treec9eaedf6aab057ac12f5533f89d3fb56f2bfb9b6
parent89162307cd2ddf0a514d3a3ed9f7b94e45f1cb15
[dev.cc] cmd/asm: rewrite parsing of TEXT $3-2

It was too complicated, assuming the syntax is more general than reality.
It must be a possibly negative integer followed by an optional minus sign
and positive integer. Literals only, no expresssions.

Also put in a TODO about address parsing and clean up a couple of types.

Change-Id: If8652249c742e42771ccf2e3024f77307b2e5d9a
Reviewed-on: https://go-review.googlesource.com/3370
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/parse.go