summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-02 04:08:41 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-02 04:08:41 +0000
commit0a3eef53d7eb99bb902c40549d4170a5048c16c0 (patch)
tree178095a36a69247047e7ac5d5e44a4417c3f5327 /unittests
parentafad335cae8d1c811e2d4a9de843a36d36b4e8c5 (diff)
downloadllvm-0a3eef53d7eb99bb902c40549d4170a5048c16c0.tar.gz
llvm-0a3eef53d7eb99bb902c40549d4170a5048c16c0.tar.bz2
llvm-0a3eef53d7eb99bb902c40549d4170a5048c16c0.tar.xz
[C++11] Switch all uses of the llvm_move macro to use std::move
directly, and remove the macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/SmallPtrSetTest.cpp2
-rw-r--r--unittests/ADT/polymorphic_ptr_test.cpp2
-rw-r--r--unittests/Support/Path.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/unittests/ADT/SmallPtrSetTest.cpp b/unittests/ADT/SmallPtrSetTest.cpp
index 675f337306..fdd1cbb600 100644
--- a/unittests/ADT/SmallPtrSetTest.cpp
+++ b/unittests/ADT/SmallPtrSetTest.cpp
@@ -143,7 +143,7 @@ TEST(SmallPtrSetTest, CopyAndMoveTest) {
s3.insert(&buf[5]);
s3.insert(&buf[6]);
s3.insert(&buf[7]);
- s1 = llvm_move(s3);
+ s1 = std::move(s3);
EXPECT_EQ(8U, s1.size());
EXPECT_TRUE(s3.empty());
for (int i = 0; i < 8; ++i)
diff --git a/unittests/ADT/polymorphic_ptr_test.cpp b/unittests/ADT/polymorphic_ptr_test.cpp
index 8198d1f32c..12e57da7d4 100644
--- a/unittests/ADT/polymorphic_ptr_test.cpp
+++ b/unittests/ADT/polymorphic_ptr_test.cpp
@@ -57,7 +57,7 @@ TEST(polymorphic_ptr_test, Basic) {
EXPECT_EQ(s, p.get());
EXPECT_EQ(42, p->x);
- polymorphic_ptr<S> p2((llvm_move(p)));
+ polymorphic_ptr<S> p2((std::move(p)));
EXPECT_FALSE((bool)p);
EXPECT_TRUE(!p);
EXPECT_TRUE((bool)p2);
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp
index d07bb5616b..c4067b9137 100644
--- a/unittests/Support/Path.cpp
+++ b/unittests/Support/Path.cpp
@@ -588,7 +588,7 @@ TEST_F(FileSystemTest, FileMapping) {
EC);
ASSERT_NO_ERROR(EC);
const char *Data = m.const_data();
- fs::mapped_file_region mfrrv(llvm_move(m));
+ fs::mapped_file_region mfrrv(std::move(m));
EXPECT_EQ(mfrrv.const_data(), Data);
}
} // anonymous namespace