summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/system_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Support/system_error.h')
-rw-r--r--llvm/include/llvm/Support/system_error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/system_error.h b/llvm/include/llvm/Support/system_error.h
index 40f5b3cd7ff..e5306ecfb35 100644
--- a/llvm/include/llvm/Support/system_error.h
+++ b/llvm/include/llvm/Support/system_error.h
@@ -668,6 +668,11 @@ public:
const error_category& generic_category();
const error_category& system_category();
+/// Get the error_category used for errno values from POSIX functions. This is
+/// the same as the system_category on POISIX systems, but is the same as the
+/// generic_category on Windows.
+const error_category& posix_category();
+
class error_condition
{
int _val_;
OpenPOWER on IntegriCloud