We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aeebfd commit c57be05Copy full SHA for c57be05
llvm/include/llvm/Support/Compiler.h
@@ -200,7 +200,12 @@
200
#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \
201
defined(__MVS__)
202
#define LLVM_ABI __attribute__((visibility("default")))
203
+#if defined(__GNUC__) && !defined(__clang__)
204
+// GCC produces warnings on visibility attributes applied to templates.
205
+#define LLVM_TEMPLATE_ABI
206
+#else
207
#define LLVM_TEMPLATE_ABI __attribute__((visibility("default")))
208
+#endif
209
#define LLVM_EXPORT_TEMPLATE
210
#define LLVM_ABI_EXPORT __attribute__((visibility("default")))
211
#elif defined(__MACH__) || defined(__WASM__) || defined(__EMSCRIPTEN__)
0 commit comments