[lld-macho] Don't include zero-size private label symbols in map file
authorJez Ng <jezng@fb.com>
Sat, 11 Mar 2023 03:31:13 +0000 (22:31 -0500)
committerJez Ng <jezng@fb.com>
Sat, 11 Mar 2023 06:40:14 +0000 (01:40 -0500)
commitdd78e7334fc5eb4a3253433fe6dd80e440b5f7cc
tree32aafbdd42ebfa3c8d48e567f932ecdee4e0b337
parent5b21395cc2422d735c632afefcb95f08d8ed4b88
[lld-macho] Don't include zero-size private label symbols in map file

This is also what ld64 does. This will make it easier to compare their
respective map files.

Reviewed By: #lld-macho, thevinster

Differential Revision: https://reviews.llvm.org/D145654
lld/MachO/InputFiles.cpp
lld/MachO/MapFile.cpp
lld/MachO/Symbols.h
lld/test/MachO/map-file.s