Generate slightly more compressed binding opcodes when entries are the same as last...
authorPete Cooper <peter_cooper@apple.com>
Thu, 11 Aug 2016 20:37:02 +0000 (20:37 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 11 Aug 2016 20:37:02 +0000 (20:37 +0000)
commit21f475e1c4fe5120400afdf3aef7c0ef0311134c
treeed7b292293b859c00f87d3281f91b4ed9f598475
parent2698cbb4f1b3de7527510b1d9c1d47853ca0f585
Generate slightly more compressed binding opcodes when entries are the same as last time.

We already had logic for binding opcodes had the same addend as last time.  This adds
the cases where the ordinal, symbol name, type, and segment offsets are the same as
the last emitted ordinal.

This gets us one step closer to emitting rebase opcodes as compressed as ld64 can manage.

llvm-svn: 278405
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
lld/test/mach-o/bind-opcodes.yaml