File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 191191#define LLVM_EXPORT_TEMPLATE
192192#endif
193193#define LLVM_ABI_EXPORT __declspec (dllexport)
194- #elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \
194+ #elif __has_attribute(visibility)
195+ #if defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \
195196 defined (__MVS__) || defined(__CYGWIN__)
196- #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
197- #define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
197+ #define LLVM_ABI __attribute__ ((visibility( " default " )))
198+ #define LLVM_TEMPLATE_ABI LLVM_ABI
198199#define LLVM_EXPORT_TEMPLATE
199- #define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
200+ #define LLVM_ABI_EXPORTL LLVM_ABI
200201#elif defined(__MACH__) || defined(__WASM__) || defined(__EMSCRIPTEN__)
201- #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
202+ #define LLVM_ABI __attribute__ ((visibility( " default " )))
202203#define LLVM_TEMPLATE_ABI
203204#define LLVM_EXPORT_TEMPLATE
204- #define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
205+ #define LLVM_ABI_EXPORT LLVM_ABI
206+ #endif
205207#endif
206208#endif
207209#if !defined(LLVM_ABI)
You can’t perform that action at this time.
0 commit comments