]> granicus.if.org Git - clang/commitdiff
Driver: Remove some dead code left around after a refactoring. Found by the
authorDaniel Dunbar <daniel@zuster.org>
Tue, 22 Jun 2010 20:18:18 +0000 (20:18 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 22 Jun 2010 20:18:18 +0000 (20:18 +0000)
Clang static analyzer!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106568 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index cf866c3d47645c5b34379cc6683eb6025cf32b90..e7cff8ea8973b403add78adb0231843fca5274fc 100644 (file)
@@ -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,