File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 199199#define LLVM_ABI_EXPORT __declspec (dllexport)
200200#elif (defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \
201201 defined (__MVS__)) && __has_attribute(visibililty)
202+ // Use __attribute__((visibility(""))) syntax for visibility rather than
203+ // [[gnu::visibility("")]] because compilers are more permissive with its
204+ // placement.
202205#define LLVM_ABI __attribute__ ((visibility(" default" )))
203206#if defined(__GNUC__) && !defined(__clang__)
204- // GCC produces warnings on visibility attributes applied to templates.
207+ // GCC produces warnings on visibility attributes applied to some templates.
205208#define LLVM_TEMPLATE_ABI
206209#else
207210#define LLVM_TEMPLATE_ABI __attribute__ ((visibility(" default" )))
You can’t perform that action at this time.
0 commit comments