From: Michael J. Spencer Date: Mon, 11 Feb 2013 22:51:07 +0000 (+0000) Subject: [Support][Compiler] Add LLVM_HAS_VARIADIC_TEMPLATES. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08834518adfba0800a1dd0c6d5ecf5f646afe8b2;p=platform%2Fupstream%2Fllvm.git [Support][Compiler] Add LLVM_HAS_VARIADIC_TEMPLATES. llvm-svn: 174913 --- diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 61c40f4..92835fc 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