DenseSet is used throughout lld, so it is better for consistency.
Details
Diff Detail
- Build Status
Buildable 14945 Build 14945: arc lint + arc unit
Event Timeline
lld/wasm/SymbolTable.cpp | ||
---|---|---|
37 | Don't you need a SetVector here? |
lld/wasm/SymbolTable.cpp | ||
---|---|---|
37 | Forgive my ignorance, but what's the difference between DenseSet and SetVector? |
lld/wasm/SymbolTable.cpp | ||
---|---|---|
37 | 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 | 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. |
Don't you need a SetVector here?