diff options
author | Dan Gohman <gohman@apple.com> | 2010-12-01 02:46:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-12-01 02:46:41 +0000 |
commit | e41b1463f9924a6f3f47d1a235619cb17bb2d0b7 (patch) | |
tree | 369dc675a6b0f3901e6d7eff148927d631c562da /llvm/lib/Support/Path.cpp | |
parent | cbb08ca08c81e8b4032719f480697824862470fe (diff) | |
download | bcm5719-llvm-e41b1463f9924a6f3f47d1a235619cb17bb2d0b7.tar.gz bcm5719-llvm-e41b1463f9924a6f3f47d1a235619cb17bb2d0b7.zip |
Delete Path::appendSuffix's return value; it wasn't used anywhere, which
is fine since isn't really necessary to check isValid there anyway.
llvm-svn: 120538
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 394e013b8b2..c3353fd0e2b 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/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 |