[lld/mac] Add some comments and asserts
authorNico Weber <thakis@chromium.org>
Thu, 7 Apr 2022 12:48:52 +0000 (08:48 -0400)
committerNico Weber <thakis@chromium.org>
Thu, 7 Apr 2022 19:43:28 +0000 (15:43 -0400)
commit2cb3d28b173570c4b34c5ce85bc18713670d07e1
tree7d0419e6ed7a230a6e5f5e6435627ea900c3393d
parentda1fc3ae955da47dc43d8d2e8f4d5a52deac7cf9
[lld/mac] Add some comments and asserts

I was wondering if SymtabSection::emitStabs() should check
defined->includeInSymtab. Add asserts and comments explaining why that's not
necessary.

No behavior change.

Differential Revision: https://reviews.llvm.org/D123302
lld/MachO/SymbolTable.cpp
lld/MachO/SyntheticSections.cpp