From fc74d562dee21346405b9bb4a7fe3bd0f2c43758 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 27 Nov 2018 20:07:15 +0000 Subject: 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 --- gcc/go/gofrontend/expressions.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gcc/go/gofrontend/expressions.h') 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. -- cgit v1.1