Properly test the LLVM_USE_RVALUE_REFERENCES macro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer 2012-08-15 19:16:27 +00:00
parent 1ebd25e438
commit 118f194966
3 changed files with 3 additions and 3 deletions

View File

@ -607,7 +607,7 @@ private:
public:
typedef char char_type;
#ifdef LLVM_USE_RVALUE_REFERENCES
#if LLVM_USE_RVALUE_REFERENCES
mapped_file_region(mapped_file_region&&);
mapped_file_region &operator =(mapped_file_region&&);
#endif

View File

@ -545,7 +545,7 @@ mapped_file_region::~mapped_file_region() {
::munmap(Mapping, Size);
}
#ifdef LLVM_USE_RVALUE_REFERENCES
#if LLVM_USE_RVALUE_REFERENCES
mapped_file_region::mapped_file_region(mapped_file_region &&other)
: Mode(other.Mode), Size(other.Size), Mapping(other.Mapping) {
other.Mapping = 0;

View File

@ -861,7 +861,7 @@ mapped_file_region::~mapped_file_region() {
::CloseHandle(FileHandle);
}
#ifdef LLVM_USE_RVALUE_REFERENCES
#if LLVM_USE_RVALUE_REFERENCES
mapped_file_region::mapped_file_region(mapped_file_region &&other)
: Mode(other.Mode)
, Size(other.Size)