Use backend interface for return statements.
authorIan Lance Taylor <iant@google.com>
Mon, 4 Apr 2011 23:19:09 +0000 (23:19 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 4 Apr 2011 23:19:09 +0000 (23:19 +0000)
commit9403944776d0a804dbb1253430633d04aef74c51
tree8d44210d8783d83e459d812c1f0df7bd37abb3c8
parent69387b92c18aa7fe8d29aa7788ae838a027b5d48
Use backend interface for return statements.

* go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
(class Bfunction): Define.
(Gcc_backend::assignment_statement): Rename from assignment.
Check for errors.
(Gcc_backend::return_statement): New function.
(tree_to_function): New function.
* Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
$(GIMPLE_H), and $(GO_GOGO_H).

From-SVN: r171959
12 files changed:
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/parse.cc
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h
gcc/go/gofrontend/types.cc