[Driver] Quote executable in reports generated by -fproc-stat-report
The option -fproc-stat-report=<file> makes driver to generate child process resource comsumption report. In the report executable name was not quoted and it made parsing the report more difficult. With this change the executable name is surrounded by quotation marks.
This commit is contained in:
parent
a57fe210ff
commit
9faedb2d71
1 changed files with 3 additions and 1 deletions
|
|
@ -3964,7 +3964,9 @@ void Driver::BuildJobs(Compilation &C) const {
|
|||
// CSV format.
|
||||
std::string Buffer;
|
||||
llvm::raw_string_ostream Out(Buffer);
|
||||
Out << llvm::sys::path::filename(Cmd.getExecutable()) << ',';
|
||||
llvm::sys::printArg(Out, llvm::sys::path::filename(Cmd.getExecutable()),
|
||||
/*Quote*/ true);
|
||||
Out << ',';
|
||||
if (Cmd.getOutputFilenames().empty())
|
||||
Out << "\"\"";
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue