1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Support/Compiler: Add LLVM_EXTENSION for use where we want to hide pedantic diags.

llvm-svn: 143468
This commit is contained in:
Daniel Dunbar 2011-11-01 17:46:12 +00:00
parent 5a9e575e81
commit e79d25dd7a

View File

@ -111,6 +111,14 @@
#define LLVM_ATTRIBUTE_NORETURN
#endif
// LLVM_EXTENSION - Support compilers where we have a keyword to suppress
// pedantic diagnostics.
#ifdef __GNUC__
#define LLVM_EXTENSION __extension__
#else
#define LLVM_EXTENSION
#endif
// LLVM_ATTRIBUTE_DEPRECATED(decl, "message")
#if __has_feature(attribute_deprecated_with_message)
# define LLVM_ATTRIBUTE_DEPRECATED(decl, message) \