mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
1ebd25e438
commit
118f194966
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user