From 862ec76377acf7a20009d755f45d8480868c3fc8 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 27 Nov 2018 15:51:01 +0000 Subject: 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 --- gcc/go/gofrontend/go.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/go/gofrontend/go.cc') 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(); -- cgit v1.1