[llvm] r202574 - [C++11] Turn off compiler-based detection of R-value references, relying
Chandler Carruth
chandlerc at gmail.com
Fri Feb 28 22:31:00 PST 2014
Author: chandlerc
Date: Sat Mar 1 00:31:00 2014
New Revision: 202574
URL: http://llvm.org/viewvc/llvm-project?rev=202574&view=rev
Log:
[C++11] Turn off compiler-based detection of R-value references, relying
on the fact that we now build in C++11 mode with modern compilers. This
should flush out any issues. If the build bots are happy with this, I'll
GC all the code for coping without R-value references.
Modified:
llvm/trunk/include/llvm/Support/Compiler.h
Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=202574&r1=202573&r2=202574&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Sat Mar 1 00:31:00 2014
@@ -56,15 +56,8 @@
#define LLVM_MSC_PREREQ(version) 0
#endif
-/// \brief Does the compiler support r-value references?
-/// This implies that <utility> provides the one-argument std::move; it
-/// does not imply the existence of any other C++ library features.
-#if __has_feature(cxx_rvalue_references) || \
- defined(__GXX_EXPERIMENTAL_CXX0X__) || LLVM_MSC_PREREQ(1600)
+/// \brief We require the host compiler to support r-value references.
#define LLVM_HAS_RVALUE_REFERENCES 1
-#else
-#define LLVM_HAS_RVALUE_REFERENCES 0
-#endif
/// \brief Does the compiler support r-value reference *this?
///
More information about the llvm-commits
mailing list