From: Argyrios Kyrtzidis Date: Tue, 15 Feb 2011 17:51:19 +0000 (+0000) Subject: Implement a function from PathV2 whose definition is missing. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6e31b9b8c36c6dc1ed2bf9d47d9e04f1af17d0f4;p=oota-llvm.git 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 --- diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index 9f9dea25876..896c94c071b 100644 --- a/lib/Support/PathV2.cpp +++ b/lib/Support/PathV2.cpp @@ -391,6 +391,12 @@ void append(SmallVectorImpl &path, const Twine &a, } } +void append(SmallVectorImpl &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)