diff options
author | Ian Lance Taylor <iant@golang.org> | 2018-11-27 15:51:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-11-27 15:51:01 +0000 |
commit | 862ec76377acf7a20009d755f45d8480868c3fc8 (patch) | |
tree | 25de4037daed56b9de9e55e305cc684602cef5a2 /gcc/go/gofrontend/statements.h | |
parent | 56c79e7f5d21660c2e16b2e17d5b48d1df10d92f (diff) | |
download | gcc-862ec76377acf7a20009d755f45d8480868c3fc8.zip gcc-862ec76377acf7a20009d755f45d8480868c3fc8.tar.gz gcc-862ec76377acf7a20009d755f45d8480868c3fc8.tar.bz2 |
compiler: import inlinable functions from package data
Start reading the export data generated by the last change in this
series. At this point we will inline direct calls to empty functions
and methods defined in different packages.
Reviewed-on: https://go-review.googlesource.com/c/150062
From-SVN: r266517
Diffstat (limited to 'gcc/go/gofrontend/statements.h')
-rw-r--r-- | gcc/go/gofrontend/statements.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/statements.h b/gcc/go/gofrontend/statements.h index ff57a21..eef8646 100644 --- a/gcc/go/gofrontend/statements.h +++ b/gcc/go/gofrontend/statements.h @@ -338,6 +338,10 @@ class Statement export_statement(Export_function_body* efb) { this->do_export_statement(efb); } + // Read a statement from export data. + static Statement* + import_statement(Import_function_body*, Location); + // Return whether this is a block statement. bool is_block_statement() const |