summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-05-02 20:20:49 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-05-02 20:20:49 +0000
commitc1e7ade641b996676baef60b3e46dc359589e191 (patch)
tree58c6355d4d82e6df3dccbd77df5d78fd58a21aca /lib
parentffc81f1916d0f167e6a94f227d5f5c9669f4cd02 (diff)
downloadclang-c1e7ade641b996676baef60b3e46dc359589e191.tar.gz
Revert "[Driver] Quote clang full version in dwarf producer when invoking cc1as"
This reverts commit r264813 / 6484b95d634f53dd929c75265ef3c4decf397584. While using it in the shell is fine, this a problem when cc1as is invoked directly by the driver because single quoting the clang full version makes cc1as write out the version with the quotes in the final binary. If the user wants to copy-n-pastable output, it could use either -### or CC_PRINT_OPTIONS=1 clang -v ... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Driver/Tools.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index f0199aab27..1cc1369f33 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -6251,8 +6251,7 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
// Set the AT_producer to the clang version when using the integrated
// assembler on assembly source files.
CmdArgs.push_back("-dwarf-debug-producer");
- std::string QuotedClangVersion("'" + getClangFullVersion() + "'");
- CmdArgs.push_back(Args.MakeArgString(QuotedClangVersion));
+ CmdArgs.push_back(Args.MakeArgString(getClangFullVersion()));
// And pass along -I options
Args.AddAllArgs(CmdArgs, options::OPT_I);