OSDN Git Service

Separate out the tests for whether the compiler suports R-value
authorChandler Carruth <chandlerc@gmail.com>
Fri, 30 Nov 2012 11:04:18 +0000 (11:04 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 30 Nov 2012 11:04:18 +0000 (11:04 +0000)
commita5bf44b0b396e8b9ae0db5c62c05ac6618aab5d3
tree7b8ebc2ca50ea3c2660078232e2e88094e9d1d0a
parent58b45535495d20639849abf7a5605be5c8304b66
Separate out the tests for whether the compiler suports R-value
references from whether it supports an R-value reference *this. No
version of GCC today supports the latter, which breaks GCC C++11
compiles of LLVM and Clang now.

Also add doxygen comments clarifying what's going on here, and update
the usage in Optional. I'll update the usages in Clang next.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168993 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Optional.h
include/llvm/Support/Compiler.h