From a61736ff90a0c1dcd2ee3493e378110ef7106494 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 15 Feb 2011 17:51:19 +0000 Subject: [PATCH] Implement a function from PathV2 whose definition is missing. llvm-svn: 125574 --- llvm/lib/Support/PathV2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp index 9f9dea25876c..896c94c071bc 100644 --- a/llvm/lib/Support/PathV2.cpp +++ b/llvm/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)