aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/expressions.cc')
-rw-r--r--gcc/go/gofrontend/expressions.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index d295fd1..8bbc557 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -1635,16 +1635,15 @@ Func_descriptor_expression::do_get_backend(Translate_context* context)
|| no->name().find("equal") != std::string::npos))
is_exported_runtime = true;
- bool is_referenced_by_inline =
- no->is_function() && no->func_value()->is_referenced_by_inline();
-
bool is_hidden = ((no->is_function()
&& no->func_value()->enclosing() != NULL)
|| (Gogo::is_hidden_name(no->name())
- && !is_exported_runtime
- && !is_referenced_by_inline)
+ && !is_exported_runtime)
|| Gogo::is_thunk(no));
+ if (no->is_function() && no->func_value()->is_referenced_by_inline())
+ is_hidden = false;
+
bvar = context->backend()->immutable_struct(var_name, asm_name,
is_hidden, false,
btype, bloc);