diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-02-11 22:51:07 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-02-11 22:51:07 +0000 |
commit | 86f18eb0b39804cf9cf1d17cdb58f44d8d846545 (patch) | |
tree | 35965edb6a7866664693506130f1abb969eb712d /include | |
parent | b4b4fa80bab1387e50c5f1b08e1141f853d35204 (diff) | |
download | external_llvm-86f18eb0b39804cf9cf1d17cdb58f44d8d846545.zip external_llvm-86f18eb0b39804cf9cf1d17cdb58f44d8d846545.tar.gz external_llvm-86f18eb0b39804cf9cf1d17cdb58f44d8d846545.tar.bz2 |
[Support][Compiler] Add LLVM_HAS_VARIADIC_TEMPLATES.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/Compiler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 61c40f4..92835fc 100644 --- a/include/llvm/Support/Compiler.h +++ b/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 |