diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-08-09 14:05:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-08-09 14:05:17 +0000 |
commit | b87060ce92628c3c81754149d2d8a7e2733fb495 (patch) | |
tree | 481f59d708170e50cb07a5189895a66babc1ddbd /gcc/go/gofrontend/parse.h | |
parent | a00f4c6b4f46ab219946e738586fca49d4e71bfd (diff) | |
download | gcc-b87060ce92628c3c81754149d2d8a7e2733fb495.zip gcc-b87060ce92628c3c81754149d2d8a7e2733fb495.tar.gz gcc-b87060ce92628c3c81754149d2d8a7e2733fb495.tar.bz2 |
compiler: rewrite compiler directive support
Rewrite the compiler directive support to recognize all the compiler
directives implemented by the current gc compiler. The directives other
than go:linkname are now turned into GOPRAGMA flags attached to a
function or function declaration. The go:linkname directive is turned
into a map attached to the Lex object. No new directives are actually
implemented yet, they are just recognized.
Reviewed-on: https://go-review.googlesource.com/26610
From-SVN: r239282
Diffstat (limited to 'gcc/go/gofrontend/parse.h')
-rw-r--r-- | gcc/go/gofrontend/parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index 734071a..a7118e7 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -209,7 +209,7 @@ class Parse void simple_var_decl_or_assignment(const std::string&, Location, bool may_be_composite_lit, Range_clause*, Type_switch*); - void function_decl(bool saw_nointerface); + void function_decl(unsigned int pragmas); Typed_identifier* receiver(); Expression* operand(bool may_be_sink, bool *is_parenthesized); Expression* enclosing_var_reference(Named_object*, Named_object*, |