aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-11-02 22:18:37 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-11-02 22:18:37 +0000
commitbd6e0323b94361559e125b07cb244629b0da0281 (patch)
tree20edcd2bac3083804311db31740c9ecd913e373d /include/llvm/System
parented724fd43a2388f93460ca397c69948d346ec4db (diff)
downloadexternal_llvm-bd6e0323b94361559e125b07cb244629b0da0281.zip
external_llvm-bd6e0323b94361559e125b07cb244629b0da0281.tar.gz
external_llvm-bd6e0323b94361559e125b07cb244629b0da0281.tar.bz2
appendSuffix: don't append a dot when the suffix is empty.
Additionally, move the implementation of appendSuffix to Path.cpp: it is platform-independent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Path.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index c13f2e8..2049528 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -454,7 +454,8 @@ namespace sys {
/// 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.
+ /// 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.
/// @brief Adds a period and the \p suffix to the end of the pathname.
bool appendSuffix(StringRef suffix);