diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-05-02 20:20:49 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-05-02 20:20:49 +0000 |
commit | 34c549ea02081e48946750adbc928ae57ff67bd9 (patch) | |
tree | 797cb74664735c243235069ed0d9dba82cfca9e4 /clang/lib/Driver/Tools.cpp | |
parent | bcdfee703049dde8be81e638a692785b8c968e50 (diff) | |
download | llvm-34c549ea02081e48946750adbc928ae57ff67bd9.zip llvm-34c549ea02081e48946750adbc928ae57ff67bd9.tar.gz llvm-34c549ea02081e48946750adbc928ae57ff67bd9.tar.bz2 |
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 ...
llvm-svn: 268297
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index f0199aa..1cc1369 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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); |