summaryrefslogtreecommitdiff
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-15 17:51:19 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-15 17:51:19 +0000
commit6e31b9b8c36c6dc1ed2bf9d47d9e04f1af17d0f4 (patch)
tree10b79363b3ce550bf47c32632d99a7d80e142e14 /lib/Support/PathV2.cpp
parentfc0569e55aade16aac6668b4fadbbdcaeb6f2537 (diff)
downloadllvm-6e31b9b8c36c6dc1ed2bf9d47d9e04f1af17d0f4.tar.gz
llvm-6e31b9b8c36c6dc1ed2bf9d47d9e04f1af17d0f4.tar.bz2
llvm-6e31b9b8c36c6dc1ed2bf9d47d9e04f1af17d0f4.tar.xz
Implement a function from PathV2 whose definition is missing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index 9f9dea2587..896c94c071 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -391,6 +391,12 @@ void append(SmallVectorImpl<char> &path, const Twine &a,
}
}
+void append(SmallVectorImpl<char> &path,
+ const_iterator begin, const_iterator end) {
+ for (; begin != end; ++begin)
+ path::append(path, *begin);
+}
+
const StringRef parent_path(StringRef path) {
size_t end_pos = parent_path_end(path);
if (end_pos == StringRef::npos)