diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-08-17 03:39:16 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-08-17 03:39:16 +0000 |
commit | e276cfc4e30dd3d85e3904ee270e85d5d0e309ad (patch) | |
tree | e24e93892c8b52036dd5cb4d9a4606adb82188a9 /lib/Driver/Tools.cpp | |
parent | 0652c35a303a6186142eea566c88714c59bdc664 (diff) |
Fix -Wl,--no-demangle to actually pass the flag to the linker on Linux instead
of silently dropping it on the floor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index b4234cfbc8..ed67f7b9a1 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -5723,6 +5723,9 @@ void linuxtools::Link::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back(Args.MakeArgString(Plugin)); } + if (Args.hasArg(options::OPT_Z_Xlinker__no_demangle)) + CmdArgs.push_back("--no-demangle"); + AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); if (D.CCCIsCXX && |