Driver: Fix two bad typos that were breaking the buildbots.

llvm-svn: 140682
This commit is contained in:
Benjamin Kramer 2011-09-28 05:33:02 +00:00
parent 7f01c7b5f1
commit fcfb53d5a5
2 changed files with 2 additions and 3 deletions

View File

@ -1523,8 +1523,7 @@ std::string Driver::GetProgramPath(const char *Name, const ToolChain &TC,
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();

View File

@ -1519,7 +1519,7 @@ static std::string findGCCBaseLibDir(const Driver &D,
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) {