[llvm-commits] [llvm] r118057 - /llvm/trunk/lib/Support/SystemUtils.cpp
Dan Gohman
gohman at apple.com
Tue Nov 2 13:49:49 PDT 2010
Author: djg
Date: Tue Nov 2 15:49:48 2010
New Revision: 118057
URL: http://llvm.org/viewvc/llvm-project?rev=118057&view=rev
Log:
Don't append a dot on platforms which don't use exe suffixes.
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=118057&r1=118056&r2=118057&view=diff
==============================================================================
--- llvm/trunk/lib/Support/SystemUtils.cpp (original)
+++ llvm/trunk/lib/Support/SystemUtils.cpp Tue Nov 2 15:49:48 2010
@@ -47,7 +47,9 @@
if (!Result.isEmpty()) {
Result.appendComponent(ExeName);
- Result.appendSuffix(sys::Path::GetEXESuffix());
+ StringRef EXESuffix = sys::Path::GetEXESuffix();
+ if (!EXESuffix.empty())
+ Result.appendSuffix(EXESuffix);
}
return Result;
More information about the llvm-commits
mailing list