summaryrefslogtreecommitdiff
path: root/unittests/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-01 09:36:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-01 09:36:06 +0000
commitbad2104d24094ae254cb8c2439fc28797caa4b8e (patch)
tree3cd2406d8f59110093c9676a971f4ca233b1a007 /unittests/Support
parentbc1bddb4c63347e427bfe468e605eae1878c7880 (diff)
downloadllvm-bad2104d24094ae254cb8c2439fc28797caa4b8e.tar.gz
llvm-bad2104d24094ae254cb8c2439fc28797caa4b8e.tar.bz2
llvm-bad2104d24094ae254cb8c2439fc28797caa4b8e.tar.xz
[C++11] Remove uses of LLVM_HAS_RVALUE_REFERENCES from the unittests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/Path.cpp2
-rw-r--r--unittests/Support/RegexTest.cpp2
2 files changed, 0 insertions, 4 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp
index f10faf9908..d07bb5616b 100644
--- a/unittests/Support/Path.cpp
+++ b/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/unittests/Support/RegexTest.cpp b/unittests/Support/RegexTest.cpp
index c3a8085acc..c045c49bc3 100644
--- a/unittests/Support/RegexTest.cpp
+++ b/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
}