DenseSet is used throughout lld, so it is better for consistency.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lld/wasm/SymbolTable.cpp | ||
---|---|---|
37 ↗ | (On Diff #134106) | Don't you need a SetVector here? |
lld/wasm/SymbolTable.cpp | ||
---|---|---|
37 ↗ | (On Diff #134106) | Forgive my ignorance, but what's the difference between DenseSet and SetVector? |
lld/wasm/SymbolTable.cpp | ||
---|---|---|
37 ↗ | (On Diff #134106) | Iterating over a SetVector produces values in the order they were inserted; iterating over a DenseSet uses an arbitrary ordering. See http://llvm.org/docs/ProgrammersManual.html#llvm-adt-setvector-h . |
lld/wasm/SymbolTable.cpp | ||
---|---|---|
37 ↗ | (On Diff #134106) | Ah, thanks. This code is to produce error messages, so the order of the output of this code doesn't have to be deterministic, but it is still nice if it's deterministic. I'll make a change to use SetVector. |