[cfe-commits] r106568 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Tue Jun 22 13:18:18 PDT 2010
Author: ddunbar
Date: Tue Jun 22 15:18:18 2010
New Revision: 106568
URL: http://llvm.org/viewvc/llvm-project?rev=106568&view=rev
Log:
Driver: Remove some dead code left around after a refactoring. Found by the
Clang static analyzer!
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=106568&r1=106567&r2=106568&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Jun 22 15:18:18 2010
@@ -2541,16 +2541,6 @@
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,
More information about the cfe-commits
mailing list