[PATCH] D40579: Use llvm::StringSet instead of std::set.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 14:22:16 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL319371: Use llvm::StringSet instead of std::set. (authored by ruiu).

Changed prior to commit:
  https://reviews.llvm.org/D40579?vs=124638&id=124817#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D40579

Files:
  lld/trunk/wasm/Config.h


Index: lld/trunk/wasm/Config.h
===================================================================
--- lld/trunk/wasm/Config.h
+++ lld/trunk/wasm/Config.h
@@ -11,14 +11,13 @@
 #define LLD_WASM_CONFIG_H
 
 #include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/StringSet.h"
 #include "llvm/BinaryFormat/Wasm.h"
 
 #include "Symbols.h"
 
 using llvm::wasm::WasmGlobal;
 
-#include <set>
-
 namespace lld {
 namespace wasm {
 
@@ -38,7 +37,7 @@
   llvm::StringRef OutputFile;
   llvm::StringRef Sysroot;
 
-  std::set<llvm::StringRef> AllowUndefinedSymbols;
+  llvm::StringSet<> AllowUndefinedSymbols;
   std::vector<llvm::StringRef> SearchPaths;
   std::vector<std::pair<Symbol *, WasmGlobal>> SyntheticGlobals;
 };


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40579.124817.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171129/0c1b6852/attachment.bin>


More information about the llvm-commits mailing list