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

llvm-svn: 141205
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp
index 7a62fa4..baaba19 100644
--- a/clang/lib/Driver/Compilation.cpp
+++ b/clang/lib/Driver/Compilation.cpp
@@ -72,7 +72,7 @@
 
 static bool needsQuote(const char *s) {
   for (const char *c = s; *c; ++c)
-    if (*c == ' ')
+    if (*c == ' ' || *c == '"' || *c == '\\' || *c == '$')
       return true;
   return false;
 }