[llvm-commits] [llvm] r118088 - /llvm/trunk/lib/Support/SystemUtils.cpp
Mikhail Glushenkov
foldr at codedgers.com
Tue Nov 2 15:18:28 PDT 2010
Author: foldr
Date: Tue Nov 2 17:18:28 2010
New Revision: 118088
URL: http://llvm.org/viewvc/llvm-project?rev=118088&view=rev
Log:
Revert r118057, this is better fixed in appendSuffix itself.
Modified:
llvm/trunk/lib/Support/SystemUtils.cpp
Modified: llvm/trunk/lib/Support/SystemUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/SystemUtils.cpp?rev=118088&r1=118087&r2=118088&view=diff
==============================================================================
--- llvm/trunk/lib/Support/SystemUtils.cpp (original)
+++ llvm/trunk/lib/Support/SystemUtils.cpp Tue Nov 2 17:18:28 2010
@@ -47,9 +47,7 @@
if (!Result.isEmpty()) {
Result.appendComponent(ExeName);
- StringRef EXESuffix = sys::Path::GetEXESuffix();
- if (!EXESuffix.empty())
- Result.appendSuffix(EXESuffix);
+ Result.appendSuffix(sys::Path::GetEXESuffix());
}
return Result;
More information about the llvm-commits
mailing list