[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:12:11 PST 2018
ruiu updated this revision to Diff 134112.
ruiu added a comment.
- use SetVector instead of DenseMap
https://reviews.llvm.org/D43254
Files:
lld/wasm/SymbolTable.cpp
Index: lld/wasm/SymbolTable.cpp
===================================================================
--- lld/wasm/SymbolTable.cpp
+++ lld/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.134112.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180213/9b13b8f4/attachment.bin>
More information about the llvm-commits
mailing list