summaryrefslogtreecommitdiff
path: root/src/locators/source.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-03-11 16:13:23 +1300
committerBen Bridle <ben@derelict.engineering>2025-03-11 16:13:23 +1300
commitbd7955cbc1c1746f37dcb0742603994fd2e04c90 (patch)
tree00bd1f0e6478aa4ea90de5db991a5bb9348f99c2 /src/locators/source.rs
parent6fb6f2836232fe78dce507fa899629bbefb7b449 (diff)
downloadassembler-bd7955cbc1c1746f37dcb0742603994fd2e04c90.zip
Prevent duplicate parent and child entries for source units
The parent and child collections for hierarchical source units were previously vecs, and would receive one entry for every symbol matched. This was easily leading to many dozens of duplicate entries per unit, which, while not impacting performance, seemed wasteful. The collection types were changed to HashSets to prevent the collection of duplicate entries.
Diffstat (limited to 'src/locators/source.rs')
0 files changed, 0 insertions, 0 deletions