summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita68282caa87e073a51f12009d2a412e77a27b362 (patch)
treea35e645ca0df26c6ec11af7b46772022f6255894 /llvm/lib/Support/PathV2.cpp
parentd77c17417ac37592b5a7dcae39228d55b9e6a052 (diff)
downloadbcm5719-llvm-a68282caa87e073a51f12009d2a412e77a27b362.tar.gz
bcm5719-llvm-a68282caa87e073a51f12009d2a412e77a27b362.zip
Support/PathV2: Remove const from bool return types.
llvm-svn: 121157
Diffstat (limited to 'llvm/lib/Support/PathV2.cpp')
-rw-r--r--llvm/lib/Support/PathV2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp
index 2088c53edb9..60e03e05f54 100644
--- a/llvm/lib/Support/PathV2.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud