diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 03:58:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 03:58:34 +0000 |
commit | e5e77d1cd85037d91116a6483ce74fe99b483341 (patch) | |
tree | bc169c2bc99d3ee7368f2aea502d28ce7babac92 /unittests | |
parent | 7456ad12403c8bf4bb30cd00ba2d26ad5af19c46 (diff) | |
download | llvm-e5e77d1cd85037d91116a6483ce74fe99b483341.tar.gz llvm-e5e77d1cd85037d91116a6483ce74fe99b483341.tar.bz2 llvm-e5e77d1cd85037d91116a6483ce74fe99b483341.tar.xz |
Remove windows_error.
MSVC doesn't seem to provide any is_error_code_enum enumeration for the
windows errors.
Fortunately very few places in llvm have to handle raw windows errors, so
we can just construct the corresponding error_code directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/Path.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index b79d05505c..660ea3663a 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -14,6 +14,10 @@ #include "llvm/Support/raw_ostream.h" #include "gtest/gtest.h" +#ifdef LLVM_ON_WIN32 +#include <winerror.h> +#endif + using namespace llvm; using namespace llvm::sys; @@ -393,7 +397,7 @@ TEST_F(FileSystemTest, TempFiles) { "abcdefghijklmnopqrstuvwxyz3abcdefghijklmnopqrstuvwxyz2" "abcdefghijklmnopqrstuvwxyz1abcdefghijklmnopqrstuvwxyz0"; EXPECT_EQ(fs::createUniqueFile(Twine(Path270), FileDescriptor, TempPath), - windows_error::path_not_found); + error_code(ERROR_PATH_NOT_FOUND, system_category())); #endif } |