From 118f194966d20460c2b1653e06c601e4b66c9b3f Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Wed, 15 Aug 2012 19:16:27 +0000 Subject: [PATCH] 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 --- include/llvm/Support/FileSystem.h | 2 +- lib/Support/Unix/PathV2.inc | 2 +- lib/Support/Windows/PathV2.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index b287a91767b..f4a9aa0e899 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -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 diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index 3bb38f6714d..d04f590f87e 100644 --- a/lib/Support/Unix/PathV2.inc +++ b/lib/Support/Unix/PathV2.inc @@ -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; diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc index 23f42aa10b0..696768ba9dd 100644 --- a/lib/Support/Windows/PathV2.inc +++ b/lib/Support/Windows/PathV2.inc @@ -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) -- 2.34.1