[PATCH] D43254: Use LLVM's DenseSet insteead of unordered_set.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 14:32:52 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL325064: Use LLVM's SetVector insteead of unordered_set. (authored by ruiu, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D43254?vs=134112&id=134121#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D43254

Files:
  lld/trunk/wasm/SymbolTable.cpp


Index: lld/trunk/wasm/SymbolTable.cpp
===================================================================
--- lld/trunk/wasm/SymbolTable.cpp
+++ lld/trunk/wasm/SymbolTable.cpp
@@ -14,8 +14,7 @@
 #include "WriterUtils.h"
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Memory.h"
-
-#include <unordered_set>
+#include "llvm/ADT/SetVector.h"
 
 #define DEBUG_TYPE "lld"
 
@@ -35,7 +34,7 @@
 }
 
 void SymbolTable::reportRemainingUndefines() {
-  std::unordered_set<Symbol *> Undefs;
+  SetVector<Symbol *> Undefs;
   for (Symbol *Sym : SymVector) {
     if (Sym->isUndefined() && !Sym->isWeak() &&
         Config->AllowUndefinedSymbols.count(Sym->getName()) == 0) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43254.134121.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180213/0b58fa3f/attachment.bin>


More information about the llvm-commits mailing list