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 | a61736ff90a0c1dcd2ee3493e378110ef7106494 (patch) | |
tree | ed86472712e695fe7b348f0ee3a177e4ee3ea3af /llvm/lib | |
parent | d724a109cf1981bb5c3d2f12769ca580dba91460 (diff) | |
download | bcm5719-llvm-a61736ff90a0c1dcd2ee3493e378110ef7106494.tar.gz bcm5719-llvm-a61736ff90a0c1dcd2ee3493e378110ef7106494.zip |
Implement a function from PathV2 whose definition is missing.
llvm-svn: 125574
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/PathV2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp index 9f9dea25876..896c94c071b 100644 --- a/llvm/lib/Support/PathV2.cpp +++ b/llvm/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) |