Add -C when linking on Solaris so that the error messages are understandable by actual humans.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151726 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index c5caaf0..7e539e5 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -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");