aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-05-07 21:35:14 +0000
committerLang Hames <lhames@gmail.com>2019-05-07 21:35:14 +0000
commit2b09b25e486834634db5eb200fe48576525b4c7d (patch)
treef8a6edb34d514dfef888f6178f4cae7f209b0127 /clang/lib/Basic/Module.cpp
parentb2fa002c83a4526d8ec860d253e02ac4ecdc8834 (diff)
downloadllvm-2b09b25e486834634db5eb200fe48576525b4c7d.zip
llvm-2b09b25e486834634db5eb200fe48576525b4c7d.tar.gz
llvm-2b09b25e486834634db5eb200fe48576525b4c7d.tar.bz2
[JITLink] Add support for MachO .alt_entry atoms.
The MachO .alt_entry directive is applied to a symbol to indicate that it is locked (in terms of address layout and liveness) to its predecessor atom. I.e. it is an alternate entry point, at a fixed offset, for the previous atom. This patch updates MachOAtomGraphBuilder to check for the .alt_entry flag on symbols and add a corresponding LayoutNext edge to the atom-graph. It also updates MachOAtomGraphBuilder_x86_64 to generalize handling of the X86_64_RELOC_SUBTRACTOR relocation: previously either the minuend or subtrahend of the subtraction had to be the same as the atom being fixed up, now it is only necessary for the minuend or subtrahend to be locked (via any chain of alt_entry directives) to the atom being fixed up. llvm-svn: 360194
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions