aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 18:12:07 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 18:12:07 +0000
commit12ccf67457cddc7841bd23bae342994a21d25eb0 (patch)
treec4653171b08741f2757e6305c10fac54772ec50e /lib/Support/PathV2.cpp
parent6511988cd477db280c7e1057af81025a40039811 (diff)
downloadexternal_llvm-12ccf67457cddc7841bd23bae342994a21d25eb0.zip
external_llvm-12ccf67457cddc7841bd23bae342994a21d25eb0.tar.gz
external_llvm-12ccf67457cddc7841bd23bae342994a21d25eb0.tar.bz2
Support/PathV2: Remove const from bool return types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index 2088c53..60e03e0 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -491,56 +491,56 @@ const StringRef extension(const StringRef &path) {
return StringRef(fname.begin() + pos, fname.size() - pos);
}
-const bool has_root_name(const Twine &path) {
+bool has_root_name(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
return !root_name(p).empty();
}
-const bool has_root_directory(const Twine &path) {
+bool has_root_directory(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
return !root_directory(p).empty();
}
-const bool has_root_path(const Twine &path) {
+bool has_root_path(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
return !root_path(p).empty();
}
-const bool has_filename(const Twine &path) {
+bool has_filename(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
return !filename(p).empty();
}
-const bool has_parent_path(const Twine &path) {
+bool has_parent_path(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
return !parent_path(p).empty();
}
-const bool has_stem(const Twine &path) {
+bool has_stem(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
return !stem(p).empty();
}
-const bool has_extension(const Twine &path) {
+bool has_extension(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
return !extension(p).empty();
}
-const bool is_absolute(const Twine &path) {
+bool is_absolute(const Twine &path) {
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);
@@ -554,7 +554,7 @@ const bool is_absolute(const Twine &path) {
return rootDir && rootName;
}
-const bool is_relative(const Twine &path) {
+bool is_relative(const Twine &path) {
return !is_absolute(path);
}