[MachO] Move type size asserts to source files. NFC
authorShoaib Meenai <smeenai@fb.com>
Wed, 17 Nov 2021 01:12:51 +0000 (17:12 -0800)
committerShoaib Meenai <smeenai@fb.com>
Wed, 17 Nov 2021 01:14:16 +0000 (17:14 -0800)
commit01510ac08474a6c4beae033794b71b6b5ab1e89d
treec06f1a5b43969a153826f6765346bb437dbf9103
parentbbccf4992219222c5b905e9965ec26b35e2c6af8
[MachO] Move type size asserts to source files. NFC

As discussed in https://reviews.llvm.org/D113809#3128636. It's a bit
unfortunate to move the asserts away from the structs whose sizes
they're checking, but it's a far better developer experience when one of
the asserts is violated, because you get a single error instead of every
single source file including the header erroring out.
lld/MachO/InputSection.cpp
lld/MachO/InputSection.h
lld/MachO/Relocations.cpp
lld/MachO/Relocations.h
lld/MachO/Symbols.cpp
lld/MachO/Symbols.h