[llvm] [llvm] annotate interfaces in llvm/Support for DLL export (PR #136014)

Andrew Rogers via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 15:46:51 PDT 2025


================
@@ -67,7 +68,7 @@ class BPFunctionNode {
   /// The ID of this node
   IDT Id;
 
-  void dump(raw_ostream &OS) const;
+  LLVM_ABI void dump(raw_ostream &OS) const;
----------------
andrurogerz wrote:

Because it is a public symbol exposed by the class. If it is not annotated, IDS will warn on it. If it is intended to be debug-only, then should it be guarded?
```
#ifndef NDEBUG
    void dump(raw_ostream &OS) const;
#endif
```

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


More information about the llvm-commits mailing list