[llvm] [llvm] annotate interfaces in llvm/Support for DLL export (PR #136014)
Andrew Rogers via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 16:16:26 PDT 2025
================
@@ -16,34 +16,41 @@
#define LLVM_SUPPORT_TARGETSELECT_H
#include "llvm/Config/llvm-config.h"
+#include "llvm/Support/Compiler.h"
extern "C" {
// Declare all of the target-initialization functions that are available.
-#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo();
+#define LLVM_TARGET(TargetName) \
+ LLVM_ABI void LLVMInitialize##TargetName##TargetInfo();
----------------
andrurogerz wrote:
I don't see any value in keeping `LLVM_C_ABI` around. More annotation variations will just lead to confusion. It is currently defined as `LLVM_ABI`. I can put up a change to remove it.
https://github.com/llvm/llvm-project/pull/136014
More information about the llvm-commits
mailing list