OSDN Git Service

gccgo: Added code to dump the AST tree. The AST dump is
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Aug 2011 00:37:26 +0000 (00:37 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Aug 2011 00:37:26 +0000 (00:37 +0000)
commitd751bb784b56e455af1abb35362147e9c94855d9
tree923d669821360649dcc148d547ce22a850f344c1
parent4303f09cc283df969f91bc037f42c0222dfa5fca
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177225 138bc75d-0d04-0410-961f-82ee72b054a4
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