Use backend interface for blocks.
authorIan Lance Taylor <iant@google.com>
Tue, 19 Apr 2011 18:20:05 +0000 (18:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 19 Apr 2011 18:20:05 +0000 (18:20 +0000)
commit5ad7db5fa38f86e095645296a5c1832fa088aa84
treebd78a56617f782bc1b6bc7acb061e27f107b8285
parentf7d2e5d418d88cccfd1d54daebd57de464d9bd92
Use backend interface for blocks.

* go-gcc.cc (class Bblock): Define.
(Gcc_backend::if_statement): Change then_block and else_block to
Bblock*.
(Gcc_backend::block): New function.
(Gcc_backend::block_add_statements): New function.
(Gcc_backend::block_statement): New function.
(tree_to_block, block_to_tree): New functions.

From-SVN: r172731
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/types.cc