aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-02-29 15:06:12 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-02-29 15:06:12 +0000
commit41d476d307973cefddeee5661b0573a2cf1b0f24 (patch)
treecb137aa7749440b8d550f424b6a5e44e34356ae2 /lib/Driver/Tools.cpp
parent51ad9cd0644c9acf442f049aed98b66f7b1041a2 (diff)
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
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index c5caaf024f..7e539e57dc 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -4220,6 +4220,9 @@ void solaris::Link::ConstructJob(Compilation &C, const JobAction &JA,
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");