[driver] For consistency, handle all shell special characters handled by the

quoting code.

llvm-svn: 141205
This commit is contained in:
Chad Rosier
2011-10-05 20:09:11 +00:00
parent 79d0c4f4b0
commit 10746f5ebb

View File

@@ -72,7 +72,7 @@ const DerivedArgList &Compilation::getArgsForToolChain(const ToolChain *TC,
static bool needsQuote(const char *s) {
for (const char *c = s; *c; ++c)
if (*c == ' ')
if (*c == ' ' || *c == '"' || *c == '\\' || *c == '$')
return true;
return false;
}