[all-commits] [llvm/llvm-project] 6c96ce: [Support] Add more Windows error codes to mapWindo...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Sat Oct 16 06:15:08 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6c96ceabaf84d149244a15916ce53df95aac3660
https://github.com/llvm/llvm-project/commit/6c96ceabaf84d149244a15916ce53df95aac3660
Author: Martin Storsjö <martin at martin.st>
Date: 2021-10-16 (Sat, 16 Oct 2021)
Changed paths:
M llvm/lib/Support/ErrorHandling.cpp
Log Message:
-----------
[Support] Add more Windows error codes to mapWindowsError
Also sort ERROR_BAD_NETPATH correctly.
Compared with the similar error code mapping in
libcxx/src/filesystem/operations.cpp, I'm leaving out
mappings for ERROR_NOT_SAME_DEVICE and ERROR_OPERATION_ABORTED.
They map nicely to std::errc::cross_device_link and
std::errc::operation_canceled, but those aren't available in
llvm::errc, as they aren't available across all platforms.
Also, the libcxx version maps ERROR_INVALID_NAME to
no_such_file_or_directory instead of invalid_argument.
Differential Revision: https://reviews.llvm.org/D111874
More information about the All-commits
mailing list