================
@@ -1661,6 +1661,11 @@ void 
CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV,
     return;
   }
 
+  if (Context.getLangOpts().HLSL && !D->isInExportDeclContext()) {
+    GV->setVisibility(llvm::GlobalValue::HiddenVisibility);
----------------
s-perron wrote:

I'll look into this for a follow up PR if necessary. This change affects many 
tests, and I don't want it to go stale.

https://github.com/llvm/llvm-project/pull/140292
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to