[lld][MachO] Sort symbols in parallel in -map
authorXuanda Yang <th3charlie@gmail.com>
Thu, 17 Jun 2021 02:13:15 +0000 (10:13 +0800)
committerXuanda Yang <th3charlie@gmail.com>
Thu, 17 Jun 2021 02:19:59 +0000 (10:19 +0800)
commit01cb9c5fc52bf7978fe8e1b1dba98b0e1d304402
tree4014cff247bea4f288ca9809e4e933a10a99591e
parent5a55205bb31f2cbc7573656da61cb9eb923bc8cc
[lld][MachO] Sort symbols in parallel in -map

source: https://bugs.llvm.org/show_bug.cgi?id=50689

When writing a map file, sort symbols in parallel using parallelSort.
Use address name to break ties if two symbols have the same address.

Reviewed By: thakis, int3

Differential Revision: https://reviews.llvm.org/D104346
lld/MachO/MapFile.cpp