MC/Mach-O: Implement initial support for relaxation.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 12 Mar 2010 22:07:14 +0000 (22:07 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 12 Mar 2010 22:07:14 +0000 (22:07 +0000)
commitf08fde41f34d739c157b1d75dadbb864e7957cab
treec71e2e775d26fa83538ad6c34d1a297234e82e8c
parent5027064c69c89ff605479d9e7eab2395a54b31e9
MC/Mach-O: Implement initial support for relaxation.
 - The implementation is currently very brain dead and inefficient, but I have a
   clear plan on how to fix it.

 - The good news is, it works and correctly assembles 403.gcc (when built with
   Clang, at '-Os', '-Os -g', and '-O3'). Even better, at '-Os' and '-Os -g',
   the resulting binary is exactly equivalent to that when built with the system
   assembler. So it probably works! :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98396 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
lib/MC/MCAssembler.cpp
test/MC/MachO/relax-jumps.s [new file with mode: 0644]
test/MC/MachO/relax-recompute-align.s [new file with mode: 0644]