]> granicus.if.org Git - clang/commitdiff
Use the new llvm::sys::EnvPathSeparator.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Jun 2013 14:29:51 +0000 (14:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Jun 2013 14:29:51 +0000 (14:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184851 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index f743bfddb137bafda99c1e67cc37041102038eec..4701707456c0e656c89355b855dd94b0920d076c 100644 (file)
@@ -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 <sys/stat.h>
@@ -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) + "."));