diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 19:05:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 19:05:55 +0000 |
commit | 96b033006d9959b2e944779ea8836f2c81cc7e2b (patch) | |
tree | a187bb3aa55dd012220c386b28416bbe87e7e9cc /clang/unittests/Basic/VirtualFileSystemTest.cpp | |
parent | 5c4f829424b0e9b3308b716f5874c9a3a978ac6a (diff) | |
download | bcm5719-llvm-96b033006d9959b2e944779ea8836f2c81cc7e2b.tar.gz bcm5719-llvm-96b033006d9959b2e944779ea8836f2c81cc7e2b.zip |
Use std::error_code instead of llvm::error_code.
This is an update for a llvm api change.
llvm-svn: 210688
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
-rw-r--r-- | clang/unittests/Basic/VirtualFileSystemTest.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp index 22e095a7708..27d5e4cd052 100644 --- a/clang/unittests/Basic/VirtualFileSystemTest.cpp +++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp @@ -35,7 +35,7 @@ public: std::map<std::string, vfs::Status>::iterator I = FilesAndDirs.find(Path.str()); if (I == FilesAndDirs.end()) - return make_error_code(errc::no_such_file_or_directory); + return make_error_code(std::errc::no_such_file_or_directory); return I->second; } error_code openFileForRead(const Twine &Path, @@ -306,7 +306,8 @@ TEST_F(VFSFromYAMLTest, MappedFiles) { EXPECT_TRUE(S->equivalent(*O->status("//root/"))); // non-volatile UniqueID // broken mapping - EXPECT_EQ(errc::no_such_file_or_directory, O->status("//root/file2").getError()); + EXPECT_EQ(std::errc::no_such_file_or_directory, + O->status("//root/file2").getError()); EXPECT_EQ(0, NumDiagnostics); } @@ -370,11 +371,11 @@ TEST_F(VFSFromYAMLTest, CaseSensitive) { O->pushOverlay(FS); ErrorOr<vfs::Status> SS = O->status("//root/xx"); - EXPECT_EQ(errc::no_such_file_or_directory, SS.getError()); + EXPECT_EQ(std::errc::no_such_file_or_directory, SS.getError()); SS = O->status("//root/xX"); - EXPECT_EQ(errc::no_such_file_or_directory, SS.getError()); + EXPECT_EQ(std::errc::no_such_file_or_directory, SS.getError()); SS = O->status("//root/Xx"); - EXPECT_EQ(errc::no_such_file_or_directory, SS.getError()); + EXPECT_EQ(std::errc::no_such_file_or_directory, SS.getError()); EXPECT_EQ(0, NumDiagnostics); } |