diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-22 20:18:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-22 20:18:18 +0000 |
commit | be6d8e3bc409fe70964e5fdb675571fde37a59d0 (patch) | |
tree | 8d038877fbf8adfb078c5f18854abe56692e2297 /lib/Driver/Tools.cpp | |
parent | 8ad9cbc518a603176462f1fa1efe389023590082 (diff) |
Driver: Remove some dead code left around after a refactoring. Found by the
Clang static analyzer!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index cf866c3d47..e7cff8ea89 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2541,16 +2541,6 @@ void darwin::Link::ConstructJob(Compilation &C, const JobAction &JA, const char *Exec = Args.MakeArgString(getToolChain().GetProgramPath(C, "ld")); Dest.addCommand(new Command(JA, *this, Exec, CmdArgs)); - - // Find the first non-empty base input (we want to ignore linker - // inputs). - const char *BaseInput = ""; - for (unsigned i = 0, e = Inputs.size(); i != e; ++i) { - if (Inputs[i].getBaseInput()[0] != '\0') { - BaseInput = Inputs[i].getBaseInput(); - break; - } - } } void darwin::Lipo::ConstructJob(Compilation &C, const JobAction &JA, |