Use backend interface for variables.
authorIan Lance Taylor <iant@google.com>
Tue, 19 Apr 2011 04:23:00 +0000 (04:23 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 19 Apr 2011 04:23:00 +0000 (04:23 +0000)
commite09ce6c5bc057b933d34bd9e9674fd2b3b622190
treefcc6b62b2ebb24bc22dd9b8f2c00e47b06854246
parent61bd5ad845cd20d5afcb2ce4595d276246064c77
Use backend interface for variables.

* go-gcc.cc: Include "go-c.h".
(class Bvariable): Define.
(Gcc_backend::init_statement): New function.
(Gcc_backend::global_variable): New function.
(Gcc_backend::global_variable_set_init): New function.
(Gcc_backend::local_variable): New function.
(Gcc_backend::parameter_variable): New function.
(tree_to_type, var_to_tree): New functions.
* Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
* (go/gogo-tree.o): Depend on go/gofrontend/backend.h.

From-SVN: r172693
gcc/go/ChangeLog
gcc/go/Make-lang.in
gcc/go/go-gcc.cc
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/statements.cc