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
This commit is contained in:
Argyrios Kyrtzidis 2011-02-15 17:51:19 +00:00
parent fc0569e55a
commit 6e31b9b8c3

View File

@ -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)