diff options
Diffstat (limited to 'gcc/go/gofrontend/gogo.cc')
-rw-r--r-- | gcc/go/gofrontend/gogo.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index 8e67074941c..794dd74e11f 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -19,7 +19,7 @@ // Class Gogo. -Gogo::Gogo(int int_type_size, int float_type_size, int pointer_size) +Gogo::Gogo(int int_type_size, int pointer_size) : package_(NULL), functions_(), globals_(new Bindings(NULL)), @@ -86,12 +86,6 @@ Gogo::Gogo(int int_type_size, int float_type_size, int pointer_size) pointer_size, RUNTIME_TYPE_KIND_UINTPTR)); - this->add_named_type(Type::make_float_type("float", float_type_size, - RUNTIME_TYPE_KIND_FLOAT)); - - this->add_named_type(Type::make_complex_type("complex", float_type_size * 2, - RUNTIME_TYPE_KIND_COMPLEX)); - this->add_named_type(Type::make_named_bool_type()); this->add_named_type(Type::make_named_string_type()); @@ -199,10 +193,10 @@ Gogo::Gogo(int int_type_size, int float_type_size, int pointer_size) append_type->set_is_builtin(); this->globals_->add_function_declaration("append", NULL, append_type, loc); - Function_type* cmplx_type = Type::make_function_type(NULL, NULL, NULL, loc); - cmplx_type->set_is_varargs(); - cmplx_type->set_is_builtin(); - this->globals_->add_function_declaration("cmplx", NULL, cmplx_type, loc); + Function_type* complex_type = Type::make_function_type(NULL, NULL, NULL, loc); + complex_type->set_is_varargs(); + complex_type->set_is_builtin(); + this->globals_->add_function_declaration("complex", NULL, complex_type, loc); Function_type* real_type = Type::make_function_type(NULL, NULL, NULL, loc); real_type->set_is_varargs(); @@ -212,7 +206,7 @@ Gogo::Gogo(int int_type_size, int float_type_size, int pointer_size) Function_type* imag_type = Type::make_function_type(NULL, NULL, NULL, loc); imag_type->set_is_varargs(); imag_type->set_is_builtin(); - this->globals_->add_function_declaration("imag", NULL, cmplx_type, loc); + this->globals_->add_function_declaration("imag", NULL, imag_type, loc); this->define_builtin_function_trees(); |