[mach-o] Implement interworking between thumb and arm code

All iOS arm processor support switching between arm and thumb mode at call sites
by using the BLX instruction (instead of BL).  But the compiler does not know
the implementation mode for extern functions, so the linker must update BL/BLX
instructions to match what is linked is actually linked together.  In addition,
pointers to functions (such as vtables) must have the low bit set if the target
of the pointer is a thumb mode function.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@214140 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] fix non-debug warnings

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@214145 91177308-0d34-0410-b5e6-96231b3b80d8