]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: factor out line parsing from assembling
authorAustin Clements <austin@google.com>
Fri, 19 Oct 2018 18:24:02 +0000 (14:24 -0400)
committerAustin Clements <austin@google.com>
Mon, 12 Nov 2018 20:46:25 +0000 (20:46 +0000)
commit52b222055908a3ae23c2a9185e53919fe56b54db
tree6764edd465f0431ab4048e9ad5b1c1a3de35f0cc
parent30cc9780856b5a88ca2a8f05312758077ca48ba1
cmd/asm: factor out line parsing from assembling

Currently cmd/asm's Parser.line both consumes a line of assembly from
the lexer and assembles it. This CL separates these two steps so that
the line parser can be reused for purposes other than generating a
Prog stream.

For #27539.
Updates #17544.

Change-Id: I452c9a2112fbcc1c94bf909efc0d1fcc71014812
Reviewed-on: https://go-review.googlesource.com/c/147097
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/line_test.go
src/cmd/asm/internal/asm/parse.go