diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-09 17:36:48 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-09 17:36:48 +0000 |
commit | 333fb04506233255f10d8095c9e2de5e5f0fdc6f (patch) | |
tree | 29b15348801de3482b07a438b1fb1f2ba094d3d2 /lib/Support/system_error.cpp | |
parent | 908b6ddad6dac40c4c0453d690f0db9422b48b10 (diff) |
Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/system_error.cpp')
-rw-r--r-- | lib/Support/system_error.cpp | 9 |
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 |