aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Compiler.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-11-17 08:34:52 +0000
committerDuncan Sands <baldrick@free.fr>2009-11-17 08:34:52 +0000
commit8dc071a6e522ea5e3eb265e28b410be8f57cffb2 (patch)
tree8e883176448a697851693aba331698b02bf4143e /include/llvm/Support/Compiler.h
parent5f9843f68fa2941a2c9930aa5cc920c38920f277 (diff)
Following a suggestion of Daniel Dunbar, stop people passing the name
as the isSigned bool to CreateIntCast by having this resolve to a call to a private method, rather than by using a gcc attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Compiler.h')
-rw-r--r--include/llvm/Support/Compiler.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index 5c414f8d56..da31f98628 100644
--- a/include/llvm/Support/Compiler.h
+++ b/include/llvm/Support/Compiler.h
@@ -78,12 +78,4 @@
#define NORETURN
#endif
-#if defined(__GNUC__) && ((__GNUC__ > 4)||(__GNUC__ == 4 && __GNUC_MINOR__ > 2))
-#define ERROR_IF_USED __attribute__((error("wrong usage")))
-#elif defined(__APPLE__)
-#define ERROR_IF_USED __attribute__((unavailable))
-#else
-#define ERROR_IF_USED
-#endif
-
#endif