]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: write a string rather than building an AST
authorIan Lance Taylor <iant@golang.org>
Wed, 17 Oct 2018 04:36:34 +0000 (21:36 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 17 Oct 2018 19:49:33 +0000 (19:49 +0000)
commit1d18f66dc82088a3a3d39410866157e3e1e44554
treec0f8dbb7fa0bfc55ba94fe66078145e3bf9efec0
parentaf95199421acb319b0b1e549cf7f4345f474f75e
cmd/cgo: write a string rather than building an AST

This generates the same code as before, but does so directly rather
than building an AST and printing that. This is in preparation for
later changes.

Change-Id: Ifec141120bcc74847f0bff8d3d47306bfe69b454
Reviewed-on: https://go-review.googlesource.com/c/142883
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/cgo/gcc.go
src/cmd/cgo/godefs.go