Use backend interface for function types.
authorIan Lance Taylor <iant@google.com>
Mon, 25 Apr 2011 17:21:28 +0000 (17:21 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 25 Apr 2011 17:21:28 +0000 (17:21 +0000)
commit482829acf2c9c685445ef08f6e1300898e1f2468
treef38009e3762666720c9319813b80afdda98236a5
parent0aa5e7f22a2ba320a7ccf0669e9549466d83905c
Use backend interface for function types.

Drop type_tree() functions for Float_type and Complex_type.
Don't define builtin functions until gogo is created.

* go-gcc.cc (Gcc_backend::error_type): Implement.
(Gcc_backend::string_type): Remove.
(Gcc_backend::function_type): Change signature and implement.
(Gcc_backend::struct_type): Change signature.
(Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
(Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
(Gcc_backend::pointer_type): Check for error.
* Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.

From-SVN: r172932
gcc/go/ChangeLog
gcc/go/Make-lang.in
gcc/go/go-gcc.cc
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h