aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Path.h
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 /include/llvm/Support/Path.h
parent43f7b2d3703987fe964985846f8a6829a66b5d69 (diff)
downloadexternal_llvm-552a3c29dcdfaade9610a822fbfd3adc61eb1263.tar.gz
external_llvm-552a3c29dcdfaade9610a822fbfd3adc61eb1263.tar.bz2
external_llvm-552a3c29dcdfaade9610a822fbfd3adc61eb1263.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Path.h')
-rw-r--r--include/llvm/Support/Path.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Support/Path.h b/include/llvm/Support/Path.h
index 93a116f45c..879f013736 100644
--- a/include/llvm/Support/Path.h
+++ b/include/llvm/Support/Path.h
@@ -455,14 +455,9 @@ namespace sys {
bool appendComponent(StringRef component);
/// A period and the \p suffix are appended to the end of the pathname.
- /// The precondition for this function is that the Path reference a file
- /// name (i.e. isFile() returns true). If the Path is not a file, no
- /// action is taken and the function returns false. If the path would
- /// become invalid for the host operating system, false is returned. When
- /// the \p suffix is empty, no action is performed.
- /// @returns false if the suffix could not be added, true if it was.
+ /// When the \p suffix is empty, no action is performed.
/// @brief Adds a period and the \p suffix to the end of the pathname.
- bool appendSuffix(StringRef suffix);
+ void appendSuffix(StringRef suffix);
/// The suffix of the filename is erased. The suffix begins with and
/// includes the last . character in the filename after the last directory