compiler: read embedcfg files, parse go:embed directives
authorIan Lance Taylor <iant@golang.org>
Tue, 5 Jan 2021 05:40:29 +0000 (21:40 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 19 Jan 2021 00:40:06 +0000 (16:40 -0800)
commitc907e4394133b3f4b58feccfb3a415f9ae5ee1f4
treea2a082a30790441b19730f20339b73312cf719f0
parentef1f8ee67d41689ddd3b6babf8fab6b4dec60c10
compiler: read embedcfg files, parse go:embed directives

This change reads go:embed directives and attaches them to variables.
We still don't do anything with the directives.

This change also reads the file passed in the -fgo-embedcfg option.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/281533
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/embed.cc
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/lex.cc
gcc/go/gofrontend/lex.h
gcc/go/gofrontend/parse.cc
gcc/go/gofrontend/parse.h