[lld] r325064 - Use LLVM's SetVector insteead of unordered_set.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 14:30:52 PST 2018
Author: ruiu
Date: Tue Feb 13 14:30:52 2018
New Revision: 325064
URL: http://llvm.org/viewvc/llvm-project?rev=325064&view=rev
Log:
Use LLVM's SetVector insteead of unordered_set.
SetVector guarantees ordering, so with that we can get a deterministic
output for error messages.
Differential Revision: https://reviews.llvm.org/D43254
Modified:
lld/trunk/wasm/SymbolTable.cpp
Modified: lld/trunk/wasm/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/SymbolTable.cpp?rev=325064&r1=325063&r2=325064&view=diff
==============================================================================
--- lld/trunk/wasm/SymbolTable.cpp (original)
+++ lld/trunk/wasm/SymbolTable.cpp Tue Feb 13 14:30:52 2018
@@ -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::addFile(InputFile *Fil
}
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) {
More information about the llvm-commits
mailing list