================
@@ -1110,9 +1110,34 @@ void CXXNameMangler::mangleNameWithAbiTags(
 }
 
 void CXXNameMangler::mangleModuleName(const NamedDecl *ND) {
-  if (ND->isExternallyVisible())
+  if (ND->isExternallyVisible()) {
     if (Module *M = ND->getOwningModuleForLinkage())
       mangleModuleNamePrefix(M->getPrimaryModuleInterfaceName());
+    return;
+  }
+
+  // A function with internal linkage in a global module fragment denotes a
----------------
ChuanqiXu9 wrote:

We should add a FIXME that states the behavior is actually not conforming but 
our strategy for real world use cases. And it is better to introduce a flag for 
this so that users can control it.

https://github.com/llvm/llvm-project/pull/219238
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to