Skip to content

Commit 7aeebfd

Browse files
committed
[llvm] use __attribute__ for export visibility macros
1 parent 8c04656 commit 7aeebfd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/include/llvm/Support/Compiler.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@
199199
#define LLVM_ABI_EXPORT __declspec(dllexport)
200200
#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \
201201
defined(__MVS__)
202-
#define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
203-
#define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
202+
#define LLVM_ABI __attribute__((visibility("default")))
203+
#define LLVM_TEMPLATE_ABI __attribute__((visibility("default")))
204204
#define LLVM_EXPORT_TEMPLATE
205-
#define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
205+
#define LLVM_ABI_EXPORT __attribute__((visibility("default")))
206206
#elif defined(__MACH__) || defined(__WASM__) || defined(__EMSCRIPTEN__)
207-
#define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
207+
#define LLVM_ABI __attribute__((visibility("default")))
208208
#define LLVM_TEMPLATE_ABI
209209
#define LLVM_EXPORT_TEMPLATE
210-
#define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
210+
#define LLVM_ABI_EXPORT __attribute__((visibility("default")))
211211
#endif
212212
#else
213213
#define LLVM_ABI

0 commit comments

Comments
 (0)