[cfe-commits] r151726 - /cfe/trunk/lib/Driver/Tools.cpp
David Chisnall
csdavec at swan.ac.uk
Wed Feb 29 07:06:12 PST 2012
Author: theraven
Date: Wed Feb 29 09:06:12 2012
New Revision: 151726
URL: http://llvm.org/viewvc/llvm-project?rev=151726&view=rev
Log:
Add -C when linking on Solaris so that the error messages are understandable by actual humans.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=151726&r1=151725&r2=151726&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Feb 29 09:06:12 2012
@@ -4220,6 +4220,9 @@
ArgStringList CmdArgs;
+ // Demangle C++ names in errors
+ CmdArgs.push_back("-C");
+
if ((!Args.hasArg(options::OPT_nostdlib)) &&
(!Args.hasArg(options::OPT_shared))) {
CmdArgs.push_back("-e");
More information about the cfe-commits
mailing list