diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-05-04 04:48:10 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-05-04 04:48:10 +0000 |
commit | f8e6517591e2c9f696a9fa9888ea1627123aedc6 (patch) | |
tree | a4815198cf05a931a7539cdf0f2bd34c9cbf846d /llvm/lib/Support/Windows/Process.inc | |
parent | 65337d1f3a2b95b600aed832b10cb84da4422a15 (diff) | |
download | bcm5719-llvm-f8e6517591e2c9f696a9fa9888ea1627123aedc6.tar.gz bcm5719-llvm-f8e6517591e2c9f696a9fa9888ea1627123aedc6.zip |
Replace windows_error calls with mapWindowsError.
After r210687, windows_error does nothing but call mapWindowsError.
Other Windows/*.inc files directly call mapWindowsError. This patch
updates Path.inc and Process.inc to do the same.
llvm-svn: 236409
Diffstat (limited to 'llvm/lib/Support/Windows/Process.inc')
-rw-r--r-- | llvm/lib/Support/Windows/Process.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Support/Windows/Process.inc b/llvm/lib/Support/Windows/Process.inc index 5f9ce7f3f6d..8164956d151 100644 --- a/llvm/lib/Support/Windows/Process.inc +++ b/llvm/lib/Support/Windows/Process.inc @@ -156,10 +156,6 @@ Optional<std::string> Process::GetEnv(StringRef Name) { return std::string(Res.data()); } -static std::error_code windows_error(DWORD E) { - return mapWindowsError(E); -} - static void AllocateAndPush(const SmallVectorImpl<char> &S, SmallVectorImpl<const char *> &Vector, SpecificBumpPtrAllocator<char> &Allocator) { @@ -235,7 +231,7 @@ Process::GetArgumentVector(SmallVectorImpl<const char *> &Args, wchar_t **UnicodeCommandLine = CommandLineToArgvW(GetCommandLineW(), &ArgCount); if (!UnicodeCommandLine) - return windows_error(::GetLastError()); + return mapWindowsError(::GetLastError()); Args.reserve(ArgCount); std::error_code ec; |