diff options
author | Chris Manghane <cmang@google.com> | 2016-08-02 21:43:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-08-02 21:43:48 +0000 |
commit | 7295570dd4a8099c010d511ffb3327fd8b0e36d7 (patch) | |
tree | ac31176b0c6aef7d08708c3dacd42fb6edbc23d4 /gcc/go/gofrontend/statements.cc | |
parent | 00803109af736deacbec676f03564c7cafce7eea (diff) | |
download | gcc-7295570dd4a8099c010d511ffb3327fd8b0e36d7.zip gcc-7295570dd4a8099c010d511ffb3327fd8b0e36d7.tar.gz gcc-7295570dd4a8099c010d511ffb3327fd8b0e36d7.tar.bz2 |
escape: Add basic debugging.
Emit basic debug information when compiling with the flag
-fgo-debug-escape#.
Reviewed-on: https://go-review.googlesource.com/22376
2016-08-02 Chris Manghane <cmang@google.com>
* lang.opt: Add -fgo-debug-escape option.
* go-c.h (go_create_gogo): Add debug_escape_level parameter.
* go-lang.c (go_langhook_init): Pass go_debug_escape_level to
go_create_gogo.
From-SVN: r239002
Diffstat (limited to 'gcc/go/gofrontend/statements.cc')
-rw-r--r-- | gcc/go/gofrontend/statements.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/statements.cc b/gcc/go/gofrontend/statements.cc index 0fd871f..9066c01 100644 --- a/gcc/go/gofrontend/statements.cc +++ b/gcc/go/gofrontend/statements.cc @@ -3058,7 +3058,6 @@ Unnamed_label_statement::do_get_backend(Translate_context* context) return this->label_->get_definition(context); } - // Dump the AST representation for an unnamed label definition statement. void @@ -5091,6 +5090,7 @@ For_statement::do_lower(Gogo*, Named_object*, Block* enclosing, } Unnamed_label* top = new Unnamed_label(this->location()); + top->set_derived_from(this); b->add_statement(Statement::make_unnamed_label_statement(top)); s = Statement::make_block_statement(this->statements_, |