diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 14:11:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 14:11:22 +0000 |
commit | 15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35 (patch) | |
tree | 98476cf9df55d8e6f36e57ecc2d7f0a39c09f44a /lib | |
parent | 7edfaf71485862ee52fb4977fa587e73aab6fa33 (diff) | |
download | llvm-15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35.tar.gz llvm-15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35.tar.bz2 llvm-15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35.tar.xz |
Replace llvm::error_code with std::error_code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/Windows/Path.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index a26d9e89e6..0e695c2e72 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -865,7 +865,7 @@ bool home_directory(SmallVectorImpl<char> &result) { } // end namespace path namespace windows { -llvm::error_code UTF8ToUTF16(llvm::StringRef utf8, +std::error_code UTF8ToUTF16(llvm::StringRef utf8, llvm::SmallVectorImpl<wchar_t> &utf16) { if (!utf8.empty()) { int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, utf8.begin(), @@ -888,10 +888,10 @@ llvm::error_code UTF8ToUTF16(llvm::StringRef utf8, utf16.push_back(0); utf16.pop_back(); - return llvm::error_code(); + return std::error_code(); } -llvm::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len, +std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len, llvm::SmallVectorImpl<char> &utf8) { if (utf16_len) { // Get length. @@ -916,7 +916,7 @@ llvm::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len, utf8.push_back(0); utf8.pop_back(); - return llvm::error_code(); + return std::error_code(); } } // end namespace windows } // end namespace sys |