MachO: Add linker-optimisation hint framework to MC.
authorTim Northover <tnorthover@apple.com>
Sat, 29 Mar 2014 07:34:53 +0000 (07:34 +0000)
committerTim Northover <tnorthover@apple.com>
Sat, 29 Mar 2014 07:34:53 +0000 (07:34 +0000)
commit1330ee3189a3a29ce89fc2648e6a0d98ba36f0d4
tree1f383ae419136fd28c8d6b8f61910edabd11e8df
parent0301154c0edc86816e995c9847a4e3f2856c2dad
MachO: Add linker-optimisation hint framework to MC.

Another part of the ARM64 backend (so tests will be following soon).
This is currently used by the linker to relax adrp/ldr pairs into nops
where possible, though could well be more broadly applicable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205084 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
include/llvm/MC/MCLinkerOptimizationHint.h [new file with mode: 0644]
include/llvm/MC/MCStreamer.h
include/llvm/Support/MachO.h
lib/MC/CMakeLists.txt
lib/MC/MCAsmStreamer.cpp
lib/MC/MCAssembler.cpp
lib/MC/MCLinkerOptimizationHint.cpp [new file with mode: 0644]
lib/MC/MCMachOStreamer.cpp
lib/MC/MachObjectWriter.cpp