This avoids some DenseMap copies when /Zi is in use, and results in
fewer data structures.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks good, thanks!
lld/COFF/DebugTypes.cpp | ||
---|---|---|
661 | Before, we were calling this if, even for non-uniqued records, meaning that we were doing (potentially) too many insertions. Now this happens only for 'unique' records, do I understand that well? |
lld/COFF/DebugTypes.cpp | ||
---|---|---|
661 | Yes. Previously, each source had its own map, which needed to to contain all LF_FUNC_ID records even if they were not unique. Now, because we later merge together all the mappings from all the sources, we have one map that is a complete global mapping from func id to type for the final PDB. |
Before, we were calling this if, even for non-uniqued records, meaning that we were doing (potentially) too many insertions. Now this happens only for 'unique' records, do I understand that well?