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 191
191
#define LLVM_EXPORT_TEMPLATE
192
192
#endif
193
193
#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) || \
195
196
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
198
199
#define LLVM_EXPORT_TEMPLATE
199
- #define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
200
+ #define LLVM_ABI_EXPORTL LLVM_ABI
200
201
#elif defined(__MACH__) || defined(__WASM__) || defined(__EMSCRIPTEN__)
201
- #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
202
+ #define LLVM_ABI __attribute__ ((visibility( " default " )))
202
203
#define LLVM_TEMPLATE_ABI
203
204
#define LLVM_EXPORT_TEMPLATE
204
- #define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
205
+ #define LLVM_ABI_EXPORT LLVM_ABI
206
+ #endif
205
207
#endif
206
208
#endif
207
209
#if !defined(LLVM_ABI)
You can’t perform that action at this time.
0 commit comments