r184906 - Remove PathV1.h use from WindowsToolChain.cpp.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jun 25 20:39:10 PDT 2013
Author: rafael
Date: Tue Jun 25 22:39:10 2013
New Revision: 184906
URL: http://llvm.org/viewvc/llvm-project?rev=184906&view=rev
Log:
Remove PathV1.h use from WindowsToolChain.cpp.
Modified:
cfe/trunk/lib/Driver/WindowsToolChain.cpp
Modified: cfe/trunk/lib/Driver/WindowsToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/WindowsToolChain.cpp?rev=184906&r1=184905&r2=184906&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/WindowsToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/WindowsToolChain.cpp Tue Jun 25 22:39:10 2013
@@ -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(
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());
}
More information about the cfe-commits
mailing list