summaryrefslogtreecommitdiff
path: root/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-12-01 02:46:41 +0000
committerDan Gohman <gohman@apple.com>2010-12-01 02:46:41 +0000
commit552a3c29dcdfaade9610a822fbfd3adc61eb1263 (patch)
tree898726a87d8c6da295cf4ed95ba508fda1b6c6c6 /lib/Support/Path.cpp
parent43f7b2d3703987fe964985846f8a6829a66b5d69 (diff)
downloadllvm-552a3c29dcdfaade9610a822fbfd3adc61eb1263.tar.gz
llvm-552a3c29dcdfaade9610a822fbfd3adc61eb1263.tar.bz2
llvm-552a3c29dcdfaade9610a822fbfd3adc61eb1263.tar.xz
Delete Path::appendSuffix's return value; it wasn't used anywhere, which
is fine since isn't really necessary to check isValid there anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r--lib/Support/Path.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp
index 394e013b8b..c3353fd0e2 100644
--- a/lib/Support/Path.cpp
+++ b/lib/Support/Path.cpp
@@ -195,19 +195,12 @@ StringRef Path::GetDLLSuffix() {
return &(LTDL_SHLIB_EXT[1]);
}
-bool
+void
Path::appendSuffix(StringRef suffix) {
if (!suffix.empty()) {
- std::string save(path);
path.append(".");
path.append(suffix);
- if (!isValid()) {
- path = save;
- return false;
- }
}
-
- return true;
}
bool