[llvm] 8694353 - [LLVM]Fix symbol visibility macros not being define for AIX (#107705)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 8 21:10:26 PDT 2024
Author: Thomas Fransham
Date: 2024-09-09T00:10:22-04:00
New Revision: 869435325454f7fd901a5c0f2436745cb72bc897
URL: https://github.com/llvm/llvm-project/commit/869435325454f7fd901a5c0f2436745cb72bc897
DIFF: https://github.com/llvm/llvm-project/commit/869435325454f7fd901a5c0f2436745cb72bc897.diff
LOG: [LLVM]Fix symbol visibility macros not being define for AIX (#107705)
This is to try and fix buildbot failure on
[clang-ppc64-aix](https://lab.llvm.org/buildbot/#/builders/64/builds/881)
from my changes in #96630. I don't really know much about AIX so it
would be good to have someone more knowledgeable to say if visibility
macros on extern templates is needed on AIX similar to ELF. @compnerd
@tstellar
Added:
Modified:
llvm/include/llvm/Support/Compiler.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 140ff611af79fb..1d2d751d4dc11a 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -189,7 +189,7 @@
#define LLVM_TEMPLATE_ABI __declspec(dllimport)
#define LLVM_EXPORT_TEMPLATE
#endif
-#elif defined(__ELF__) || defined(__MINGW32__)
+#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX)
#define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
#define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
#define LLVM_EXPORT_TEMPLATE
More information about the llvm-commits
mailing list