aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-02-19 05:33:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-02-19 05:33:51 +0000
commit8ac38d7b5d88d12f454a7cda1275bf429813151d (patch)
tree9efd518ddc82f60a2f7e068482b2c901efdfc0e4 /lib/Driver/Tools.cpp
parentaef05d71bcceb6f913b1749500863bcd3fed43b6 (diff)
Driver/Darwin: Support -Wl, with -Xarch_. This doesn't work naturally because of
the special way we model "linker input" arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 5233e2bcf6..8328982ae9 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -91,6 +91,10 @@ static void AddLinkerInputs(const ToolChain &TC,
ArgStringList &CmdArgs) {
const Driver &D = TC.getDriver();
+ // Add extra linker input arguments which are not treated as inputs
+ // (constructed via -Xarch_).
+ Args.AddAllArgValues(CmdArgs, options::OPT_Zlinker_input);
+
for (InputInfoList::const_iterator
it = Inputs.begin(), ie = Inputs.end(); it != ie; ++it) {
const InputInfo &II = *it;