Revert r118057, this is better fixed in appendSuffix itself.

llvm-svn: 118088
This commit is contained in:
Mikhail Glushenkov 2010-11-02 22:18:28 +00:00
parent cdd587157f
commit 97788c1061

View File

@ -47,9 +47,7 @@ sys::Path llvm::FindExecutable(const std::string &ExeName,
if (!Result.isEmpty()) {
Result.appendComponent(ExeName);
StringRef EXESuffix = sys::Path::GetEXESuffix();
if (!EXESuffix.empty())
Result.appendSuffix(EXESuffix);
Result.appendSuffix(sys::Path::GetEXESuffix());
}
return Result;