r184851 - Use the new llvm::sys::EnvPathSeparator.

Rafael Espindola rafael.espindola at gmail.com
Tue Jun 25 07:29:51 PDT 2013


Author: rafael
Date: Tue Jun 25 09:29:51 2013
New Revision: 184851

URL: http://llvm.org/viewvc/llvm-project?rev=184851&view=rev
Log:
Use the new llvm::sys::EnvPathSeparator.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=184851&r1=184850&r2=184851&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Jun 25 09:29:51 2013
@@ -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 ArgLi
     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) + "."));





More information about the cfe-commits mailing list