summaryrefslogtreecommitdiff
path: root/lib/Support/system_error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/system_error.cpp')
-rw-r--r--lib/Support/system_error.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Support/system_error.cpp b/lib/Support/system_error.cpp
index cd18906f06..56898de315 100644
--- a/lib/Support/system_error.cpp
+++ b/lib/Support/system_error.cpp
@@ -96,6 +96,15 @@ system_category() {
return s;
}
+const error_category&
+posix_category() {
+#ifdef LLVM_ON_WIN32
+ return generic_category();
+#else
+ return system_category();
+#endif
+}
+
// error_condition
std::string