From: Rafael Espindola Date: Tue, 25 Jun 2013 14:29:51 +0000 (+0000) Subject: Use the new llvm::sys::EnvPathSeparator. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8db7ec0779d9ed6a8d4762bfeda16bdc3f8f2133;p=clang Use the new llvm::sys::EnvPathSeparator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184851 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index f743bfddb1..4701707456 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -32,6 +32,7 @@ #include "llvm/Support/Format.h" #include "llvm/Support/Host.h" #include "llvm/Support/PathV1.h" +#include "llvm/Support/Program.h" #include "llvm/Support/Process.h" #include "llvm/Support/raw_ostream.h" #include @@ -109,7 +110,7 @@ static void addDirectoryList(const ArgList &Args, return; StringRef::size_type Delim; - while ((Delim = Dirs.find(llvm::sys::PathSeparator)) != StringRef::npos) { + while ((Delim = Dirs.find(llvm::sys::EnvPathSeparator)) != StringRef::npos) { if (Delim == 0) { // Leading colon. if (CombinedArg) { CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + "."));