]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/go/gofrontend/go.cc
gccgo: Added code to dump the AST tree.
[thirdparty/gcc.git] / gcc / go / gofrontend / go.cc
index 3dc344027657c8dfc3182c413bead3d5e4d7ee96..4ab0f8ee7cf8b5fecb5324cdc102c04c91f2f828 100644 (file)
@@ -133,6 +133,9 @@ go_parse_input_files(const char** filenames, unsigned int filename_count,
 
   // Convert complicated go and defer statements into simpler ones.
   ::gogo->simplify_thunk_statements();
+  
+  // Dump ast, use filename[0] as the base name
+  ::gogo->dump_ast(filenames[0]);
 }
 
 // Write out globals.