[mach-o] remove __compact_unwind atoms once __unwind_info has been generated
authorTim Northover <tnorthover@apple.com>
Tue, 4 Nov 2014 21:57:32 +0000 (21:57 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 4 Nov 2014 21:57:32 +0000 (21:57 +0000)
commitf98b1c99603d7da0e7d3700e446fe864506294f8
tree75a37eed9a137efe1ebad5e070ba7fb4ac7c1380
parenta16974a5c06463d0191760388a790421b155164d
[mach-o] remove __compact_unwind atoms once __unwind_info has been generated

The job of the CompactUnwind pass is to turn __compact_unwind data (and
__eh_frame) into the compressed final form in __unwind_info. After it's done,
the original atoms are no longer relevant and should be deleted (they cause
problems during actual execution, quite apart from the fact that they're not
needed).

llvm-svn: 221301
lld/include/lld/Core/File.h
lld/include/lld/Core/Resolver.h
lld/include/lld/Core/Simple.h
lld/lib/Core/Resolver.cpp
lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
lld/test/mach-o/unwind-info-simple-x86_64.yaml
lld/test/mach-o/write-final-sections.yaml