[llvm] [llvm] annotate interfaces in AsmParser, BinaryFormat, Bitcode, and Bitstream libraries for DLL export (PR #141794)

Andrew Rogers via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 09:50:13 PDT 2025


================
@@ -120,7 +121,7 @@ namespace llvm {
 extern FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold;
 }
 
-extern llvm::cl::opt<bool> UseNewDbgInfoFormat;
+LLVM_ABI extern llvm::cl::opt<bool> UseNewDbgInfoFormat;
----------------
andrurogerz wrote:

This order is consistent with what already exists in the codebase for extern variable declarations. This position is also where `ids` adds the macro when it finds an extern variable declaration in a header file, and what I've documented [here](https://github.com/llvm/llvm-project/pull/141794). I'm happy to revisit if you would prefer the other order, though.

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


More information about the llvm-commits mailing list