diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-15 17:51:19 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-15 17:51:19 +0000 |
commit | 6e31b9b8c36c6dc1ed2bf9d47d9e04f1af17d0f4 (patch) | |
tree | 10b79363b3ce550bf47c32632d99a7d80e142e14 /lib/Support/PathV2.cpp | |
parent | fc0569e55aade16aac6668b4fadbbdcaeb6f2537 (diff) |
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.cpp | 6 |
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) |