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
This commit is contained in:
Dan Gohman
2010-12-01 02:46:41 +00:00
parent 43f7b2d370
commit 552a3c29dc
2 changed files with 3 additions and 15 deletions

View File

@ -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