]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: read source files once
authorAlexander Menzhinsky <amenzhinsky@gmail.com>
Tue, 18 Apr 2017 03:06:46 +0000 (22:06 -0500)
committerIan Lance Taylor <iant@golang.org>
Tue, 18 Apr 2017 22:59:42 +0000 (22:59 +0000)
commitf71f32e5e155ae5b7f60005c939746637086f30e
tree80373e5175a0030017752face824983116d30247
parent2e45310caff101ea7de8873523faab96eb3a87ca
cmd/cgo: read source files once

Now cgo reads source files twice: for c prefix generation and parsing
go code to an ast node. It can be narrowed down to single loop.

Change-Id: Ie05452a3a12106aaab863244727390037e69e8e6
Reviewed-on: https://go-review.googlesource.com/40939
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/ast.go
src/cmd/cgo/main.go