[mach-o] add initial support for modes in arm code.
authorNick Kledzik <kledzik@apple.com>
Wed, 23 Jul 2014 00:51:37 +0000 (00:51 +0000)
committerNick Kledzik <kledzik@apple.com>
Wed, 23 Jul 2014 00:51:37 +0000 (00:51 +0000)
commit7e9808f7de23e0136d3c8b5dea7d31d745933454
tree3ad794c33f451f4ee1da62aa02cfc99d979c5ec5
parent16d99f93a8cfaab97fc8a60a53a95f72708f4f5d
[mach-o] add initial support for modes in arm code.

This patch just supports marking ranges that are thumb code (vs arm code).
Future patches will mark data and jump table ranges. The ranges are encoded
as References with offsetInAtom being the start of the range and the target
being the same atom.

llvm-svn: 213712
lld/lib/ReaderWriter/MachO/ArchHandler.h
lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp
lld/lib/ReaderWriter/MachO/File.h
lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
lld/test/mach-o/parse-arm-relocs.yaml