gccgo: Added code to dump the AST tree.
authorRoberto Lublinerman <rluble@gmail.com>
Wed, 3 Aug 2011 00:37:26 +0000 (00:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 3 Aug 2011 00:37:26 +0000 (00:37 +0000)
commit16c57fe28099740e06cb761b928b62a5a028bf66
tree923d669821360649dcc148d547ce22a850f344c1
parent44e7bfcb6fcfb7382b97f0b0793b1fd26c054e1d
gccgo: Added code to dump the AST tree.

gccgo: Added code to dump the AST tree. The AST dump is
activated with -fgo-dump-ast.
Initial version, it only dumps (most) constructs that
are expected after the lowering transformation.

* Make-lang.in (GO_OBJS): Add go/ast-dump.o.
(go/ast-dump.o): New target.
(go/expressions.o): Depend on go/gofrontend/ast-dump.h.
(go/statements.o): Likewise.

From-SVN: r177225
gcc/go/ChangeLog
gcc/go/Make-lang.in
gcc/go/gofrontend/ast-dump.cc [new file with mode: 0644]
gcc/go/gofrontend/ast-dump.h [new file with mode: 0644]
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h