aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/go.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2018-11-27 15:51:01 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-11-27 15:51:01 +0000
commit862ec76377acf7a20009d755f45d8480868c3fc8 (patch)
tree25de4037daed56b9de9e55e305cc684602cef5a2 /gcc/go/gofrontend/go.cc
parent56c79e7f5d21660c2e16b2e17d5b48d1df10d92f (diff)
downloadgcc-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/go.cc')
-rw-r--r--gcc/go/gofrontend/go.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/go.cc b/gcc/go/gofrontend/go.cc
index d444e4a..d8da232 100644
--- a/gcc/go/gofrontend/go.cc
+++ b/gcc/go/gofrontend/go.cc
@@ -97,8 +97,6 @@ go_parse_input_files(const char** filenames, unsigned int filename_count,
}
}
- ::gogo->linemap()->stop();
-
::gogo->clear_file_scope();
// If the global predeclared names are referenced but not defined,
@@ -122,6 +120,10 @@ go_parse_input_files(const char** filenames, unsigned int filename_count,
// form which is easier to use.
::gogo->lower_parse_tree();
+ // At this point we have handled all inline functions, so we no
+ // longer need the linemap.
+ ::gogo->linemap()->stop();
+
// Create function descriptors as needed.
::gogo->create_function_descriptors();