Implement a function from PathV2 whose definition is missing.

llvm-svn: 125574
This commit is contained in:
Argyrios Kyrtzidis 2011-02-15 17:51:19 +00:00
parent d724a109cf
commit a61736ff90
1 changed files with 6 additions and 0 deletions

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)