diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-17 23:21:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-17 23:21:08 +0000 |
commit | f21f4773f38db001b434d6e26daba5b9f7cf2e75 (patch) | |
tree | 8d741a435b92dd40a98b3a05ddacc3d2b3c78639 /gcc/go/gofrontend/export.h | |
parent | b2c4b7b9408b401e4ad668a3a005516d9af32c53 (diff) | |
download | gcc-f21f4773f38db001b434d6e26daba5b9f7cf2e75.zip gcc-f21f4773f38db001b434d6e26daba5b9f7cf2e75.tar.gz gcc-f21f4773f38db001b434d6e26daba5b9f7cf2e75.tar.bz2 |
compiler: List imported packages in export information.
From-SVN: r184355
Diffstat (limited to 'gcc/go/gofrontend/export.h')
-rw-r--r-- | gcc/go/gofrontend/export.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/export.h b/gcc/go/gofrontend/export.h index a558510..0e03f48 100644 --- a/gcc/go/gofrontend/export.h +++ b/gcc/go/gofrontend/export.h @@ -14,6 +14,7 @@ class Gogo; class Import_init; class Bindings; class Type; +class Package; // Codes used for the builtin types. These are all negative to make // them easily distinct from the codes assigned by Export::write_type. @@ -126,6 +127,7 @@ class Export : public String_dump export_globals(const std::string& package_name, const std::string& unique_prefix, int package_priority, + const std::map<std::string, Package*>& imports, const std::string& import_init_fn, const std::set<Import_init>& imported_init_fns, const Bindings* bindings); @@ -158,6 +160,10 @@ class Export : public String_dump Export(const Export&); Export& operator=(const Export&); + // Write out the imported packages. + void + write_imports(const std::map<std::string, Package*>& imports); + // Write out the imported initialization functions. void write_imported_init_fns(const std::string& package_name, int priority, |