summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/Process.inc
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-05-04 04:48:10 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-05-04 04:48:10 +0000
commitf8e6517591e2c9f696a9fa9888ea1627123aedc6 (patch)
treea4815198cf05a931a7539cdf0f2bd34c9cbf846d /llvm/lib/Support/Windows/Process.inc
parent65337d1f3a2b95b600aed832b10cb84da4422a15 (diff)
downloadbcm5719-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.inc6
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;
OpenPOWER on IntegriCloud