[cfe-commits] r140682 - in /cfe/trunk/lib/Driver: Driver.cpp ToolChains.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Sep 27 22:33:02 PDT 2011
Author: d0k
Date: Wed Sep 28 00:33:02 2011
New Revision: 140682
URL: http://llvm.org/viewvc/llvm-project?rev=140682&view=rev
Log:
Driver: Fix two bad typos that were breaking the buildbots.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=140682&r1=140681&r2=140682&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Sep 28 00:33:02 2011
@@ -1523,8 +1523,7 @@
if (!P.empty())
return P.str();
- P = llvm::sys::Path(llvm::sys::Program::FindProgramByName(
- TargetSpecificExecutable));
+ P = llvm::sys::Path(llvm::sys::Program::FindProgramByName(Name));
if (!P.empty())
return P.str();
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=140682&r1=140681&r2=140682&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Wed Sep 28 00:33:02 2011
@@ -1519,7 +1519,7 @@
bool Exists;
llvm::SmallVector<std::string, 8> Paths(D.PrefixDirs.begin(),
D.PrefixDirs.end());
- Paths.push_back("/usr/");
+ Paths.push_back("/usr/lib/");
const std::string *Triples[] = {&GccTriple, &D.DefaultHostTriple};
for (llvm::SmallVector<std::string, 8>::const_iterator it = Paths.begin(),
ie = Paths.end(); it != ie; ++it) {
More information about the cfe-commits
mailing list