diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-01 18:57:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-01 18:57:10 +0000 |
commit | e411850054322167de1ae23af2b7c9b7a1ac9029 (patch) | |
tree | 4933f4f00f1dfda27ff47044cab8049911bf2186 /gcc | |
parent | b0d0a2918f405c52d9b6893d3c4ed77e5d659a06 (diff) | |
download | gcc-e411850054322167de1ae23af2b7c9b7a1ac9029.zip gcc-e411850054322167de1ae23af2b7c9b7a1ac9029.tar.gz gcc-e411850054322167de1ae23af2b7c9b7a1ac9029.tar.bz2 |
compiler: add error to list of built-in types.
From-SVN: r181889
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/export.cc | 1 | ||||
-rw-r--r-- | gcc/go/gofrontend/export.h | 3 | ||||
-rw-r--r-- | gcc/go/gofrontend/import.cc | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/export.cc b/gcc/go/gofrontend/export.cc index 0832055..3fb7089 100644 --- a/gcc/go/gofrontend/export.cc +++ b/gcc/go/gofrontend/export.cc @@ -337,6 +337,7 @@ Export::register_builtin_types(Gogo* gogo) this->register_builtin_type(gogo, "uintptr", BUILTIN_UINTPTR); this->register_builtin_type(gogo, "bool", BUILTIN_BOOL); this->register_builtin_type(gogo, "string", BUILTIN_STRING); + this->register_builtin_type(gogo, "error", BUILTIN_ERROR); } // Register one builtin type in the export table. diff --git a/gcc/go/gofrontend/export.h b/gcc/go/gofrontend/export.h index 1f8278f..a06b549 100644 --- a/gcc/go/gofrontend/export.h +++ b/gcc/go/gofrontend/export.h @@ -39,8 +39,9 @@ enum Builtin_code BUILTIN_STRING = -16, BUILTIN_COMPLEX64 = -17, BUILTIN_COMPLEX128 = -18, + BUILTIN_ERROR = -19, - SMALLEST_BUILTIN_CODE = -18 + SMALLEST_BUILTIN_CODE = -19 }; // This class manages exporting Go declarations. It handles the main diff --git a/gcc/go/gofrontend/import.cc b/gcc/go/gofrontend/import.cc index d3405c1..075109c 100644 --- a/gcc/go/gofrontend/import.cc +++ b/gcc/go/gofrontend/import.cc @@ -706,6 +706,7 @@ Import::register_builtin_types(Gogo* gogo) this->register_builtin_type(gogo, "uintptr", BUILTIN_UINTPTR); this->register_builtin_type(gogo, "bool", BUILTIN_BOOL); this->register_builtin_type(gogo, "string", BUILTIN_STRING); + this->register_builtin_type(gogo, "error", BUILTIN_ERROR); } // Register a single builtin type. |