From a91c0ba88a6c380b85e8f070f325099bf72e9ffd Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 22 Jun 2010 20:18:18 +0000 Subject: Driver: Remove some dead code left around after a refactoring. Found by the Clang static analyzer! llvm-svn: 106568 --- clang/lib/Driver/Tools.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'clang/lib') diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index cf866c3d476..e7cff8ea897 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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, -- cgit v1.2.3