r184753 - Convert a use of PathV1.h
Rafael Espindola
rafael.espindola at gmail.com
Mon Jun 24 09:46:15 PDT 2013
Author: rafael
Date: Mon Jun 24 11:46:15 2013
New Revision: 184753
URL: http://llvm.org/viewvc/llvm-project?rev=184753&view=rev
Log:
Convert a use of PathV1.h
Modified:
cfe/trunk/lib/Driver/Compilation.cpp
Modified: cfe/trunk/lib/Driver/Compilation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Compilation.cpp?rev=184753&r1=184752&r2=184753&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Compilation.cpp (original)
+++ cfe/trunk/lib/Driver/Compilation.cpp Mon Jun 24 11:46:15 2013
@@ -257,7 +257,7 @@ bool Compilation::CleanupFileMap(const A
int Compilation::ExecuteCommand(const Command &C,
const Command *&FailingCommand) const {
- llvm::sys::Path Prog(C.getExecutable());
+ std::string Prog(C.getExecutable());
const char **Argv = new const char*[C.getArguments().size() + 2];
Argv[0] = C.getExecutable();
std::copy(C.getArguments().begin(), C.getArguments().end(), Argv+1);
@@ -294,7 +294,7 @@ int Compilation::ExecuteCommand(const Co
std::string Error;
bool ExecutionFailed;
- int Res = llvm::sys::ExecuteAndWait(Prog.str(), Argv, /*env*/ 0, Redirects,
+ int Res = llvm::sys::ExecuteAndWait(Prog, Argv, /*env*/ 0, Redirects,
/*secondsToWait*/ 0, /*memoryLimit*/ 0,
&Error, &ExecutionFailed);
if (!Error.empty()) {
More information about the cfe-commits
mailing list