Move empty atom check to target independent code. NFC.
authorPete Cooper <peter_cooper@apple.com>
Tue, 22 Mar 2016 23:07:34 +0000 (23:07 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 22 Mar 2016 23:07:34 +0000 (23:07 +0000)
commit10bf15ee8ee3dc32c05ff78de79811345a0b9a2c
treedb4d615e00163b0f741b16330b5e156eaab8d32c
parentb9a9d7163f984123875a8c6276a1567fe79bd29f
Move empty atom check to target independent code.  NFC.

Turns out that checking only x86 for empty atoms to fix UBSan then
requires the same code in the other targets too.  Better to just
check this in the main run loop instead of in each target.

Should be NFC, other than fixing UBSan failures.

llvm-svn: 264116
lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp