Move interleave(...) to the llvm namespace

This simplifies fixing the master-next build. Upstream LLVM already
has a copy of this function, so on master-next we only need to delete
the Swift copy, reducing the potential for merge conflicts.
This commit is contained in:
Michael Forster
2020-04-17 11:20:50 +02:00
parent 69954495c0
commit fae87c96d7
25 changed files with 215 additions and 200 deletions

View File

@@ -1973,7 +1973,7 @@ static void printTargetInfo(const CompilerInvocation &invocation,
auto outputPaths = [&](StringRef name, const std::vector<std::string> &paths){
out << " \"" << name << "\": [\n";
interleave(paths, [&out](const std::string &path) {
llvm::interleave(paths, [&out](const std::string &path) {
out << " \"";
out.write_escaped(path);
out << "\"";