mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 16:31:33 +00:00
Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES.
Rationale: 1) This was the name in the comment block. ;] 2) It matches Clang's __has_feature naming convention. 3) It matches other compiler-feature-test conventions. Sorry for the noise. =] I've also switch the comment block to use a \brief tag and not duplicate the name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a17babb021
commit
4334dd96a9
@ -274,7 +274,7 @@ public:
|
||||
initSlowCase(that);
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
/// @brief Move Constructor.
|
||||
APInt(APInt&& that) : BitWidth(that.BitWidth), VAL(that.VAL) {
|
||||
that.BitWidth = 0;
|
||||
@ -601,7 +601,7 @@ public:
|
||||
return AssignSlowCase(RHS);
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
/// @brief Move assignment operator.
|
||||
APInt& operator=(APInt&& that) {
|
||||
if (!isSingleWord())
|
||||
|
@ -98,7 +98,7 @@ public:
|
||||
std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord));
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
BitVector(BitVector &&RHS)
|
||||
: Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) {
|
||||
RHS.Bits = 0;
|
||||
@ -452,7 +452,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
const BitVector &operator=(BitVector &&RHS) {
|
||||
if (this == &RHS) return *this;
|
||||
|
||||
|
@ -198,7 +198,7 @@ public:
|
||||
return FindAndConstruct(Key).second;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
value_type& FindAndConstruct(KeyT &&Key) {
|
||||
BucketT *TheBucket;
|
||||
if (LookupBucketFor(Key, TheBucket))
|
||||
@ -383,7 +383,7 @@ private:
|
||||
return TheBucket;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
BucketT *InsertIntoBucket(const KeyT &Key, ValueT &&Value,
|
||||
BucketT *TheBucket) {
|
||||
TheBucket = InsertIntoBucketImpl(Key, TheBucket);
|
||||
@ -536,7 +536,7 @@ public:
|
||||
copyFrom(other);
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
DenseMap(DenseMap &&other) {
|
||||
init(0);
|
||||
swap(other);
|
||||
@ -566,7 +566,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
DenseMap& operator=(DenseMap &&other) {
|
||||
this->destroyAll();
|
||||
operator delete(Buckets);
|
||||
@ -700,7 +700,7 @@ public:
|
||||
copyFrom(other);
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
SmallDenseMap(SmallDenseMap &&other) {
|
||||
init(0);
|
||||
swap(other);
|
||||
@ -795,7 +795,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
SmallDenseMap& operator=(SmallDenseMap &&other) {
|
||||
this->destroyAll();
|
||||
deallocateBuckets();
|
||||
|
@ -123,7 +123,7 @@ namespace llvm {
|
||||
retain();
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
IntrusiveRefCntPtr(IntrusiveRefCntPtr&& S) : Obj(S.Obj) {
|
||||
S.Obj = 0;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include <cassert>
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
#include <utility>
|
||||
#endif
|
||||
|
||||
@ -33,7 +33,7 @@ public:
|
||||
explicit Optional() : x(), hasVal(false) {}
|
||||
Optional(const T &y) : x(y), hasVal(true) {}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
Optional(T &&y) : x(std::forward<T>(y)), hasVal(true) {}
|
||||
#endif
|
||||
|
||||
|
@ -32,7 +32,7 @@ class OwningPtr {
|
||||
public:
|
||||
explicit OwningPtr(T *P = 0) : Ptr(P) {}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
OwningPtr(OwningPtr &&Other) : Ptr(Other.take()) {}
|
||||
|
||||
OwningPtr &operator=(OwningPtr &&Other) {
|
||||
@ -95,7 +95,7 @@ class OwningArrayPtr {
|
||||
public:
|
||||
explicit OwningArrayPtr(T *P = 0) : Ptr(P) {}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
OwningArrayPtr(OwningArrayPtr &&Other) : Ptr(Other.take()) {}
|
||||
|
||||
OwningArrayPtr &operator=(OwningArrayPtr &&Other) {
|
||||
|
@ -153,7 +153,7 @@ public:
|
||||
switchToLarge(new BitVector(*RHS.getPointer()));
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
SmallBitVector(SmallBitVector &&RHS) : X(RHS.X) {
|
||||
RHS.X = 1;
|
||||
}
|
||||
@ -472,7 +472,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
const SmallBitVector &operator=(SmallBitVector &&RHS) {
|
||||
if (this != &RHS) {
|
||||
clear();
|
||||
|
@ -178,7 +178,7 @@ protected:
|
||||
/// std::move, but not all stdlibs actually provide that.
|
||||
template<typename It1, typename It2>
|
||||
static It2 move(It1 I, It1 E, It2 Dest) {
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
for (; I != E; ++I, ++Dest)
|
||||
*Dest = ::std::move(*I);
|
||||
return Dest;
|
||||
@ -193,7 +193,7 @@ protected:
|
||||
/// std::move_backward, but not all stdlibs actually provide that.
|
||||
template<typename It1, typename It2>
|
||||
static It2 move_backward(It1 I, It1 E, It2 Dest) {
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
while (I != E)
|
||||
*--Dest = ::std::move(*--E);
|
||||
return Dest;
|
||||
@ -206,7 +206,7 @@ protected:
|
||||
/// memory starting with "Dest", constructing elements as needed.
|
||||
template<typename It1, typename It2>
|
||||
static void uninitialized_move(It1 I, It1 E, It2 Dest) {
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
for (; I != E; ++I, ++Dest)
|
||||
::new ((void*) &*Dest) T(::std::move(*I));
|
||||
#else
|
||||
@ -239,7 +239,7 @@ public:
|
||||
goto Retry;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
void push_back(T &&Elt) {
|
||||
if (this->EndX < this->CapacityX) {
|
||||
Retry:
|
||||
@ -422,7 +422,7 @@ public:
|
||||
}
|
||||
|
||||
T pop_back_val() {
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
T Result = ::std::move(this->back());
|
||||
#else
|
||||
T Result = this->back();
|
||||
@ -495,7 +495,7 @@ public:
|
||||
return(N);
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
iterator insert(iterator I, T &&Elt) {
|
||||
if (I == this->end()) { // Important special case for empty vector.
|
||||
this->push_back(::std::move(Elt));
|
||||
@ -667,7 +667,7 @@ public:
|
||||
|
||||
SmallVectorImpl &operator=(const SmallVectorImpl &RHS);
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
SmallVectorImpl &operator=(SmallVectorImpl &&RHS);
|
||||
#endif
|
||||
|
||||
@ -787,7 +787,7 @@ SmallVectorImpl<T> &SmallVectorImpl<T>::
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
template <typename T>
|
||||
SmallVectorImpl<T> &SmallVectorImpl<T>::operator=(SmallVectorImpl<T> &&RHS) {
|
||||
// Avoid self-assignment.
|
||||
@ -898,7 +898,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) {
|
||||
if (!RHS.empty())
|
||||
SmallVectorImpl<T>::operator=(::std::move(RHS));
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
TinyPtrVector(TinyPtrVector &&RHS) : Val(RHS.Val) {
|
||||
RHS.Val = (EltTy)0;
|
||||
}
|
||||
|
@ -19,15 +19,15 @@
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
|
||||
/// LLVM_HAS_RVALUE_REFERENCES - Does the compiler provide r-value references?
|
||||
/// \brief Does the compiler support r-value references?
|
||||
/// This implies that <utility> provides the one-argument std::move; it
|
||||
/// does not imply the existence of any other C++ library features.
|
||||
#if (__has_feature(cxx_rvalue_references) \
|
||||
|| defined(__GXX_EXPERIMENTAL_CXX0X__) \
|
||||
|| (defined(_MSC_VER) && _MSC_VER >= 1600))
|
||||
#define LLVM_USE_RVALUE_REFERENCES 1
|
||||
#define LLVM_HAS_RVALUE_REFERENCES 1
|
||||
#else
|
||||
#define LLVM_USE_RVALUE_REFERENCES 0
|
||||
#define LLVM_HAS_RVALUE_REFERENCES 0
|
||||
#endif
|
||||
|
||||
/// \brief Does the compiler support r-value reference *this?
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
/// llvm_move - Expands to ::std::move if the compiler supports
|
||||
/// r-value references; otherwise, expands to the argument.
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
#define llvm_move(value) (::std::move(value))
|
||||
#else
|
||||
#define llvm_move(value) (value)
|
||||
|
@ -607,7 +607,7 @@ private:
|
||||
public:
|
||||
typedef char char_type;
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
mapped_file_region(mapped_file_region&&);
|
||||
mapped_file_region &operator =(mapped_file_region&&);
|
||||
#endif
|
||||
|
@ -12,4 +12,4 @@ bool isPrint(int c) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -546,7 +546,7 @@ mapped_file_region::~mapped_file_region() {
|
||||
::munmap(Mapping, Size);
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#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;
|
||||
|
@ -861,7 +861,7 @@ mapped_file_region::~mapped_file_region() {
|
||||
::CloseHandle(FileHandle);
|
||||
}
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
mapped_file_region::mapped_file_region(mapped_file_region &&other)
|
||||
: Mode(other.Mode)
|
||||
, Size(other.Size)
|
||||
|
@ -1539,4 +1539,4 @@ def : Wrapper16Pat<tglobaltlsaddr, AddiuRxRxImmX16, CPU16Regs>;
|
||||
def : Mips16Pat<(i32 (extloadi8 addr16:$src)),
|
||||
(LbuRxRyOffMemX16 addr16:$src)>;
|
||||
def : Mips16Pat<(i32 (extloadi16 addr16:$src)),
|
||||
(LhuRxRyOffMemX16 addr16:$src)>;
|
||||
(LhuRxRyOffMemX16 addr16:$src)>;
|
||||
|
@ -157,7 +157,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveCtorTest) {
|
||||
this->expectValues(Copy2, this->testArray(42));
|
||||
this->expectValues(this->V2, this->testArray(0));
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
TypeParam Move(std::move(Copy2));
|
||||
this->expectValues(Move, this->testArray(42));
|
||||
this->expectValues(Copy2, this->testArray(0));
|
||||
@ -168,7 +168,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
this->expectValues(this->V2, this->testArray(0));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
#endif
|
||||
@ -177,7 +177,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
this->expectValues(this->V2, this->testArray(0));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(1), this->testArray(0));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
@ -187,7 +187,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
this->expectValues(this->V2, this->testArray(0));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(2), this->testArray(0));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
@ -197,7 +197,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
this->expectValues(this->V2, this->testArray(0));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(42), this->testArray(0));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(0));
|
||||
@ -207,7 +207,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
this->expectValues(this->V2, this->testArray(1));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(0), this->testArray(1));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
@ -217,7 +217,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
this->expectValues(this->V2, this->testArray(2));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(0), this->testArray(2));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
@ -227,7 +227,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
this->expectValues(this->V2, this->testArray(42));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(0), this->testArray(42));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
@ -237,7 +237,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
this->expectValues(this->V2, this->testArray(1));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
#endif
|
||||
@ -246,7 +246,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
this->expectValues(this->V2, this->testArray(2));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(1), this->testArray(2));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
@ -256,7 +256,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
this->expectValues(this->V2, this->testArray(42));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(1), this->testArray(42));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
@ -266,7 +266,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
this->expectValues(this->V2, this->testArray(1));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(2), this->testArray(1));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
@ -276,7 +276,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
this->expectValues(this->V2, this->testArray(2));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(2), this->testArray(2));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
@ -286,7 +286,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
this->expectValues(this->V2, this->testArray(42));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(2), this->testArray(42));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
@ -296,7 +296,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
this->expectValues(this->V2, this->testArray(1));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(42), this->testArray(1));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(1));
|
||||
@ -306,7 +306,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
this->expectValues(this->V2, this->testArray(2));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(42), this->testArray(2));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(2));
|
||||
@ -316,7 +316,7 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) {
|
||||
this->V = this->V2;
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
this->expectValues(this->V2, this->testArray(42));
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
this->setVectors(this->testArray(42), this->testArray(42));
|
||||
this->V = std::move(this->V2);
|
||||
this->expectValues(this->V, this->testArray(42));
|
||||
|
@ -375,7 +375,7 @@ TEST_F(FileSystemTest, FileMapping) {
|
||||
|
||||
// Unmap temp file
|
||||
|
||||
#if LLVM_USE_RVALUE_REFERENCES
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
fs::mapped_file_region m(Twine(TempPath),
|
||||
fs::mapped_file_region::readonly,
|
||||
0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user