diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-01 09:27:28 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-01 09:27:28 +0000 |
commit | 1bf384776647cab62c98bf9009a9e1ab12f81493 (patch) | |
tree | ee3e70f6c76b4fd2472702489823c58eaab6a176 /llvm/lib/Support | |
parent | caf24cf30413321dffb9d11525d8a1a6ffdcdadb (diff) | |
download | bcm5719-llvm-1bf384776647cab62c98bf9009a9e1ab12f81493.tar.gz bcm5719-llvm-1bf384776647cab62c98bf9009a9e1ab12f81493.zip |
[C++11] Remove the R-value reference #if usage from the ADT and Support
libraries. It is now always 1 in LLVM builds.
llvm-svn: 202580
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/SmallPtrSet.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 2 | ||||
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Support/SmallPtrSet.cpp b/llvm/lib/Support/SmallPtrSet.cpp index f7b8a7723cf..844e41696f9 100644 --- a/llvm/lib/Support/SmallPtrSet.cpp +++ b/llvm/lib/Support/SmallPtrSet.cpp @@ -186,7 +186,6 @@ SmallPtrSetImplBase::SmallPtrSetImplBase(const void **SmallStorage, NumTombstones = that.NumTombstones; } -#if LLVM_HAS_RVALUE_REFERENCES SmallPtrSetImplBase::SmallPtrSetImplBase(const void **SmallStorage, unsigned SmallSize, SmallPtrSetImplBase &&that) { @@ -214,7 +213,6 @@ SmallPtrSetImplBase::SmallPtrSetImplBase(const void **SmallStorage, that.NumElements = 0; that.NumTombstones = 0; } -#endif /// CopyFrom - implement operator= from a smallptrset that has the same pointer /// type, but may have a different small size. @@ -254,7 +252,6 @@ void SmallPtrSetImplBase::CopyFrom(const SmallPtrSetImplBase &RHS) { NumTombstones = RHS.NumTombstones; } -#if LLVM_HAS_RVALUE_REFERENCES void SmallPtrSetImplBase::MoveFrom(unsigned SmallSize, SmallPtrSetImplBase &&RHS) { assert(&RHS != this && "Self-move should be handled by the caller."); @@ -282,7 +279,6 @@ void SmallPtrSetImplBase::MoveFrom(unsigned SmallSize, RHS.NumElements = 0; RHS.NumTombstones = 0; } -#endif void SmallPtrSetImplBase::swap(SmallPtrSetImplBase &RHS) { if (this == &RHS) return; diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 2249b64b451..caa30c7533a 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -538,12 +538,10 @@ mapped_file_region::~mapped_file_region() { ::munmap(Mapping, Size); } -#if LLVM_HAS_RVALUE_REFERENCES mapped_file_region::mapped_file_region(mapped_file_region &&other) : Mode(other.Mode), Size(other.Size), Mapping(other.Mapping) { other.Mapping = 0; } -#endif mapped_file_region::mapmode mapped_file_region::flags() const { assert(Mapping && "Mapping failed but used anyway!"); diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 98b2767c011..c39600357be 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -659,7 +659,6 @@ mapped_file_region::~mapped_file_region() { ::UnmapViewOfFile(Mapping); } -#if LLVM_HAS_RVALUE_REFERENCES mapped_file_region::mapped_file_region(mapped_file_region &&other) : Mode(other.Mode) , Size(other.Size) @@ -671,7 +670,6 @@ mapped_file_region::mapped_file_region(mapped_file_region &&other) other.FileHandle = INVALID_HANDLE_VALUE; other.FileDescriptor = 0; } -#endif mapped_file_region::mapmode mapped_file_region::flags() const { assert(Mapping && "Mapping failed but used anyway!"); |