mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Only add dll visibility on non-local functions for win32.
This commit is contained in:
@@ -607,7 +607,7 @@ void llvm_emit_function_decl(GenContext *c, Decl *decl)
|
||||
{
|
||||
llvm_attribute_add(c, function, attribute_id.naked, -1);
|
||||
}
|
||||
if (prototype->call_abi == CALL_X86_STD)
|
||||
if (prototype->call_abi == CALL_X86_STD && decl->visibility != VISIBLE_LOCAL)
|
||||
{
|
||||
if (platform_target.os == OS_TYPE_WIN32)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user