summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-02-11 22:51:07 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-02-11 22:51:07 +0000
commit08834518adfba0800a1dd0c6d5ecf5f646afe8b2 (patch)
treee5df783009c80a2ca44b6d3ea1fcf09996f14df8
parentbf1af1acc7c6215419b20d0eb6c1a19e2d9665d3 (diff)
downloadbcm5719-llvm-08834518adfba0800a1dd0c6d5ecf5f646afe8b2.tar.gz
bcm5719-llvm-08834518adfba0800a1dd0c6d5ecf5f646afe8b2.zip
[Support][Compiler] Add LLVM_HAS_VARIADIC_TEMPLATES.
llvm-svn: 174913
-rw-r--r--llvm/include/llvm/Support/Compiler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 61c40f4a19a..92835fce542 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -71,6 +71,16 @@
#define LLVM_HAS_CXX11_STDLIB 0
#endif
+/// \macro LLVM_HAS_VARIADIC_TEMPLATES
+/// \brief Does this compiler support variadic templates.
+///
+/// Implies LLVM_HAS_RVALUE_REFERENCES and the existence of std::forward.
+#if __has_feature(cxx_variadic_templates)
+# define LLVM_HAS_VARIADIC_TEMPLATES 1
+#else
+# define LLVM_HAS_VARIADIC_TEMPLATES 0
+#endif
+
/// llvm_move - Expands to ::std::move if the compiler supports
/// r-value references; otherwise, expands to the argument.
#if LLVM_HAS_RVALUE_REFERENCES
OpenPOWER on IntegriCloud