aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-05-16 00:26:32 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-05-16 00:26:32 +0000
commit2c686dfe81543de77737f9bb296f8579c86a49c1 (patch)
treec186492cd191c6a015d1b758952640d285952c40 /gcc/go
parent240f6a1d79b0ea22785cee5377be8dd623ff749e (diff)
downloadgcc-2c686dfe81543de77737f9bb296f8579c86a49c1.zip
gcc-2c686dfe81543de77737f9bb296f8579c86a49c1.tar.gz
gcc-2c686dfe81543de77737f9bb296f8579c86a49c1.tar.bz2
compiler: Fix assembler names of types defined in functions.
From-SVN: r187574
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/gogo-tree.cc2
-rw-r--r--gcc/go/gofrontend/types.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc
index 5f74de5..05417be 100644
--- a/gcc/go/gofrontend/gogo-tree.cc
+++ b/gcc/go/gofrontend/gogo-tree.cc
@@ -1003,7 +1003,7 @@ Named_object::get_id(Gogo* gogo)
{
const Named_object* in_function = this->type_value()->in_function();
if (in_function != NULL)
- decl_name += '$' + in_function->name();
+ decl_name += '$' + Gogo::unpack_hidden_name(in_function->name());
}
return get_identifier_from_string(decl_name);
}
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc
index 35770c7..3f6e97a 100644
--- a/gcc/go/gofrontend/types.cc
+++ b/gcc/go/gofrontend/types.cc
@@ -1748,7 +1748,7 @@ Type::specific_type_functions(Gogo* gogo, Named_type* name,
base_name = name->name();
const Named_object* in_function = name->in_function();
if (in_function != NULL)
- base_name += '$' + in_function->name();
+ base_name += '$' + Gogo::unpack_hidden_name(in_function->name());
}
std::string hash_name = base_name + "$hash";
std::string equal_name = base_name + "$equal";