diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-10-21 18:03:08 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-10-21 18:03:08 +0000 |
commit | 33bdbc66d3ee912e8f50f194a40e5a8237a4ba26 (patch) | |
tree | 1d350ad9eafc39be0d3775e4497f96b048943023 /clang/lib/Driver/Job.cpp | |
parent | dd86f33902071c39b3ec2ab8c572df32beb8b29b (diff) | |
download | bcm5719-llvm-33bdbc66d3ee912e8f50f194a40e5a8237a4ba26.tar.gz bcm5719-llvm-33bdbc66d3ee912e8f50f194a40e5a8237a4ba26.zip |
Driver: Quote the command in crash reproduction scripts.
This fixes crash report generation when filenames have spaces. It also
removes an awkward workaround that quoted *some* arguments when
generating crash reports.
llvm-svn: 220307
Diffstat (limited to 'clang/lib/Driver/Job.cpp')
-rw-r--r-- | clang/lib/Driver/Job.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/Driver/Job.cpp b/clang/lib/Driver/Job.cpp index 34d38b904cc..c5b3f5a307b 100644 --- a/clang/lib/Driver/Job.cpp +++ b/clang/lib/Driver/Job.cpp @@ -73,12 +73,6 @@ static int skipArgs(const char *Flag) { return 0; } -static bool quoteNextArg(const char *flag) { - return llvm::StringSwitch<bool>(flag) - .Case("-D", true) - .Default(false); -} - static void PrintArg(raw_ostream &OS, const char *Arg, bool Quote) { const bool Escape = std::strpbrk(Arg, "\"\\$"); @@ -189,11 +183,6 @@ void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote, OS << ' '; PrintArg(OS, Arg, Quote); - - if (CrashInfo && quoteNextArg(Arg) && i + 1 < e) { - OS << ' '; - PrintArg(OS, Args[++i], true); - } } if (CrashInfo && !CrashInfo->VFSPath.empty()) { |