summaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-01 06:31:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-01 06:31:00 +0000
commitf8bc17fadc8f170c1126328d203f0dab78960137 (patch)
tree2634233a397a59cba7313f983a9cd132d64eb719 /include/llvm/Support
parent8669eda107c8f4b561b57963fad3ded3614af1cc (diff)
downloadllvm-f8bc17fadc8f170c1126328d203f0dab78960137.tar.gz
llvm-f8bc17fadc8f170c1126328d203f0dab78960137.tar.bz2
llvm-f8bc17fadc8f170c1126328d203f0dab78960137.tar.xz
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/Compiler.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index d7621a0513..e5bde0fae9 100644
--- a/include/llvm/Support/Compiler.h
+++ b/include/llvm/Support/Compiler.h
@@ -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?
///