aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index b296a7df7..34d3aaf7f 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -516,6 +516,8 @@ String lb_mangle_name(lbModule *m, Entity *e) {
require_suffix_id = true;
} else if (is_blank_ident(e->token)) {
require_suffix_id = true;
+ }if (e->flags & EntityFlag_NotExported) {
+ require_suffix_id = true;
}
if (require_suffix_id) {