We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a3ad29 commit df04a07Copy full SHA for df04a07
gcc/rust/backend/rust-compile-item.h
@@ -138,10 +138,13 @@ class CompileItem : public HIRCompileBase
138
// convert to the actual function type
139
auto compiled_fn_type = TyTyCompile::compile (ctx->get_backend (), fnType);
140
141
+ unsigned int flags = 0;
142
+ flags |= Backend::function_is_visible;
143
+
144
+ std::string asm_name = function.function_name;
145
Bfunction *fndecl
146
= ctx->get_backend ()->function (compiled_fn_type, function.function_name,
- "" /* asm_name */, 0 /* flags */,
- function.get_locus ());
147
+ asm_name, flags, function.get_locus ());
148
ctx->insert_function_decl (function.get_mappings ().get_hirid (), fndecl);
149
150
// setup the params
0 commit comments