diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-01 09:36:06 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-01 09:36:06 +0000 |
| commit | 667363b3e3a9a8a37a387f3bbc7a72916dcf4912 (patch) | |
| tree | 2a765c977c00f0054937c9265210e37d92ecd83e /llvm/unittests/Support | |
| parent | 172f7c37b91434741018d4f6efa88047f6105402 (diff) | |
| download | bcm5719-llvm-667363b3e3a9a8a37a387f3bbc7a72916dcf4912.tar.gz bcm5719-llvm-667363b3e3a9a8a37a387f3bbc7a72916dcf4912.zip | |
[C++11] Remove uses of LLVM_HAS_RVALUE_REFERENCES from the unittests.
llvm-svn: 202583
Diffstat (limited to 'llvm/unittests/Support')
| -rw-r--r-- | llvm/unittests/Support/Path.cpp | 2 | ||||
| -rw-r--r-- | llvm/unittests/Support/RegexTest.cpp | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index f10faf9908b..d07bb5616b5 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -581,7 +581,6 @@ TEST_F(FileSystemTest, FileMapping) { // Unmap temp file -#if LLVM_HAS_RVALUE_REFERENCES fs::mapped_file_region m(Twine(TempPath), fs::mapped_file_region::readonly, 0, @@ -591,6 +590,5 @@ TEST_F(FileSystemTest, FileMapping) { const char *Data = m.const_data(); fs::mapped_file_region mfrrv(llvm_move(m)); EXPECT_EQ(mfrrv.const_data(), Data); -#endif } } // anonymous namespace diff --git a/llvm/unittests/Support/RegexTest.cpp b/llvm/unittests/Support/RegexTest.cpp index c3a8085accd..c045c49bc3d 100644 --- a/llvm/unittests/Support/RegexTest.cpp +++ b/llvm/unittests/Support/RegexTest.cpp @@ -140,7 +140,6 @@ TEST_F(RegexTest, IsValid) { EXPECT_EQ("invalid character range", Error); } -#if LLVM_HAS_RVALUE_REFERENCES TEST_F(RegexTest, MoveConstruct) { Regex r1("^[0-9]+$"); Regex r2(std::move(r1)); @@ -153,6 +152,5 @@ TEST_F(RegexTest, MoveAssign) { r2 = std::move(r1); EXPECT_TRUE(r2.match("916")); } -#endif } |

