diff --git a/include/llvm/ADT/StringSet.h b/include/llvm/ADT/StringSet.h index 08626dc7af8..c32c2a49743 100644 --- a/include/llvm/ADT/StringSet.h +++ b/include/llvm/ADT/StringSet.h @@ -33,6 +33,12 @@ namespace llvm { assert(!Key.empty()); return base::insert(std::make_pair(Key, '\0')); } + + template + void insert(const InputIt &Begin, const InputIt &End) { + for (auto It = Begin; It != End; ++It) + base::insert(std::make_pair(*It, '\0')); + } }; }