]> granicus.if.org Git - clang/commitdiff
Remove PathV1.h use from WindowsToolChain.cpp.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Jun 2013 03:39:10 +0000 (03:39 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Jun 2013 03:39:10 +0000 (03:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184906 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/WindowsToolChain.cpp

index da914befa7c8524ca6f0afcf23a2bb3d3830ca4e..3cbb5c83df9120d27ac3f2bb99535fa690b502a4 100644 (file)
@@ -18,7 +18,6 @@
 #include "llvm/Option/ArgList.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/PathV1.h"
 
 // Include the necessary headers to interface with the Windows registry and
 // environment.
@@ -284,8 +283,8 @@ void Windows::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
     return;
 
   if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
-    llvm::sys::Path P(getDriver().ResourceDir);
-    P.appendComponent("include");
+    SmallString<128> P(getDriver().ResourceDir);
+    llvm::sys::path::append(P, "include");
     addSystemInclude(DriverArgs, CC1Args, P.str());
   }