diff options
Diffstat (limited to 'contrib/llvm/include/llvm/ADT/StringSet.h')
-rw-r--r-- | contrib/llvm/include/llvm/ADT/StringSet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/llvm/include/llvm/ADT/StringSet.h b/contrib/llvm/include/llvm/ADT/StringSet.h index 3e0cc20..08626dc 100644 --- a/contrib/llvm/include/llvm/ADT/StringSet.h +++ b/contrib/llvm/include/llvm/ADT/StringSet.h @@ -23,6 +23,11 @@ namespace llvm { class StringSet : public llvm::StringMap<char, AllocatorTy> { typedef llvm::StringMap<char, AllocatorTy> base; public: + StringSet() = default; + StringSet(std::initializer_list<StringRef> S) { + for (StringRef X : S) + insert(X); + } std::pair<typename base::iterator, bool> insert(StringRef Key) { assert(!Key.empty()); |