diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-11-27 20:07:15 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-11-27 20:07:15 +0000 |
commit | fc74d562dee21346405b9bb4a7fe3bd0f2c43758 (patch) | |
tree | 35d3a10f8cc71c587e964eea8bb12bb2e4c8ebe2 /gcc/go/gofrontend/expressions.h | |
parent | 593570593e0401d2c8cb34ced3efd0cd50e2638e (diff) | |
download | gcc-fc74d562dee21346405b9bb4a7fe3bd0f2c43758.zip gcc-fc74d562dee21346405b9bb4a7fe3bd0f2c43758.tar.gz gcc-fc74d562dee21346405b9bb4a7fe3bd0f2c43758.tar.bz2 |
compiler: change expression importing to use Import_expression
Change expression importing to use a new abstract interface class
Import_expression, so that we can more easily import expressions from
inlinable function bodies. This is a refactoring with no affect on
compiler behavior.
Reviewed-on: https://go-review.googlesource.com/c/150065
From-SVN: r266526
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 3641b03..7061657 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -66,7 +66,7 @@ class Compound_expression; class Numeric_constant; class Named_object; class Export_function_body; -class Import; +class Import_expression; class Temporary_statement; class Label; class Ast_dump_context; @@ -1018,7 +1018,7 @@ class Expression // returned expression. Errors should be reported using the // Import's location method. static Expression* - import_expression(Import*, Location); + import_expression(Import_expression*, Location); // Return an expression which checks that VAL, of arbitrary integer type, // is non-negative and is not more than the maximum integer value. @@ -1567,7 +1567,7 @@ class String_expression : public Expression { return this->val_; } static Expression* - do_import(Import*, Location); + do_import(Import_expression*, Location); protected: bool @@ -1646,7 +1646,7 @@ class Type_conversion_expression : public Expression // Import a type conversion expression. static Expression* - do_import(Import*, Location); + do_import(Import_expression*, Location); protected: int @@ -1817,7 +1817,7 @@ class Unary_expression : public Expression Location, Numeric_constant* nc, bool *issued_error); static Expression* - do_import(Import*, Location); + do_import(Import_expression*, Location); // Declare that this deref does or does not require an explicit nil check. void @@ -1966,7 +1966,7 @@ class Binary_expression : public Expression bool* result); static Expression* - do_import(Import*, Location); + do_import(Import_expression*, Location); // Report an error if OP can not be applied to TYPE. Return whether // it can. OTYPE is the type of the other operand. |