[llvm] [llvm] annotate interfaces in llvm/Analysis for DLL export (PR #136623)

Andrew Rogers via llvm-commits llvm-commits at lists.llvm.org
Wed May 21 15:46:26 PDT 2025


================
@@ -956,7 +956,7 @@ class AAManager : public AnalysisInfoMixin<AAManager> {
 private:
   friend AnalysisInfoMixin<AAManager>;
 
-  static AnalysisKey Key;
+  LLVM_ABI static AnalysisKey Key;
----------------
andrurogerz wrote:

A potentially very simple approach is to just always export all private members for any class that has at least one `friend` declaration. That would address this issue, but would also over-export.

https://github.com/llvm/llvm-project/pull/136623


More information about the llvm-commits mailing list