-c6097f269d2b3dbfd5204cf7e3d0b9f8d7ec2b5e
+5c3f52ffbae7a9bb59bce63cd2cffdd8af8f4a92
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
Bexpression*
do_get_backend(Translate_context* context);
+ int
+ do_inlining_cost() const
+ { return 1; }
+
// When exporting a reference to a const as part of a const
// expression, we export the value. We ignore the fact that it has
// a name.
return Goto_statement::do_import(ifb, loc);
Expression* lhs = Expression::import_expression(ifb, loc);
+
+ if (ifb->match_c_string(" //"))
+ return Statement::make_statement(lhs, true);
+
ifb->require_c_string(" = ");
Expression* rhs = Expression::import_expression(ifb, loc);
return Statement::make_assignment(lhs, rhs, loc);
return true;
}
+// Export an expression statement.
+
+void
+Expression_statement::do_export_statement(Export_function_body* efb)
+{
+ this->expr_->export_expression(efb);
+}
+
// Convert to backend representation.
Bstatement*