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

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 15:52:21 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;
----------------
mshockwave wrote:

I think we have a dedicated macro for dump method:
```
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
  void dump(...) const;
#endif
```
Preferably, we should also add `LLVM_DUMP_METHOD` on the dump function but that is to force it be available inside debugger.

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


More information about the llvm-commits mailing list