diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-02-19 05:33:51 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-02-19 05:33:51 +0000 |
commit | 1094bb101b2e298142432319748b3ea60de164f4 (patch) | |
tree | 6417f8bb86867e2fecfb629ebceccf72f0d3789b /clang/lib/Driver/Tools.cpp | |
parent | 12f146a3efd4342cc01a94d5bb5d9ec4287bce06 (diff) | |
download | bcm5719-llvm-1094bb101b2e298142432319748b3ea60de164f4.tar.gz bcm5719-llvm-1094bb101b2e298142432319748b3ea60de164f4.zip |
Driver/Darwin: Support -Wl, with -Xarch_. This doesn't work naturally because of
the special way we model "linker input" arguments.
llvm-svn: 126023
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 5233e2bcf68..8328982ae92 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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; |