From 706cd57f714fcb3572f97ded0bfbfcfe090181bc Mon Sep 17 00:00:00 2001 From: Roberto Lublinerman Date: Wed, 24 Aug 2011 19:22:44 +0000 Subject: gccgo... gccgo: fixes to ast-dump, refactoring of export and ast-dump to implement a common interface for writing basic type literals and added flags for optimization. * lang.opt: Add fgo-optimize-. * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize. * go-c.h (go_enable_optimize): Declare. * Make-lang.in (GO_OBJS): Add go/go-optimize.o. (GO_EXPORT_H): Define. (GO_IMPORT_H): Add $(GO_EXPORT_H). (GO_AST_DUMP_H): Define. (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H. (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H. (go/types.o): Likewise. (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H. (go/go-optimize.o): New target. From-SVN: r178046 --- gcc/go/gofrontend/expressions.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/go/gofrontend/expressions.h') diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 6f74f73..ec59846 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -43,6 +43,7 @@ class Import; class Temporary_statement; class Label; class Ast_dump_context; +class String_dump; // The base class for all expressions. @@ -1043,6 +1044,10 @@ class String_expression : public Expression tree do_get_tree(Translate_context*); + // Write string literal to a string dump. + static void + export_string(String_dump* exp, const String_expression* str); + void do_export(Export*) const; -- cgit v1.1