[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:58:05 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](https://learn.microsoft.com/en-us/cpp/cpp/definitions-and-declarations-cpp?view=msvc-170) is the only example I can find on MSDN, and it suggests the current order is expected (`extern` before `__declspec`).

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


More information about the llvm-commits mailing list