diff options
author | Kuba Mracek <mracek@apple.com> | 2021-09-13 14:44:49 -0700 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2021-09-13 15:22:11 -0700 |
commit | e80ee4cbd9a79efa99cabdbb42faba7c7b01e70e (patch) | |
tree | 44bf62747bb88f2317502bd4d78a439736e51b4b /llvm/lib/Support | |
parent | b2032f18c9dec45a9cb4163136fa9dcbe256e772 (diff) | |
download | llvm-e80ee4cbd9a79efa99cabdbb42faba7c7b01e70e.zip llvm-e80ee4cbd9a79efa99cabdbb42faba7c7b01e70e.tar.gz llvm-e80ee4cbd9a79efa99cabdbb42faba7c7b01e70e.tar.bz2 |
[GlobalDCE] In VFE support for relative pointers, allow GEP references to the base symbol
This is for Swift VFE support. In some vtable forms that Swift emits, the "base" of a relative pointer is not the global symbol itself directly, but a GEP into it -- so the pointer is relative to a particular field in the global. So getPointerAtOffset() needs to be able to see through the GEP and allow it in a SUB expression, to correctly recognize the offset as a vtable slot.
Differential Revision: https://reviews.llvm.org/D109169
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions