[all-commits] [llvm/llvm-project] fcd07f: [JITLink] Fix splitBlock if there are symbols span...

Steven Wu via All-commits all-commits at lists.llvm.org
Mon Nov 15 13:55:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fcd07f810781c1754c2e7e9641fd18b95fa1368c
      https://github.com/llvm/llvm-project/commit/fcd07f810781c1754c2e7e9641fd18b95fa1368c
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    M llvm/lib/ExecutionEngine/JITLink/JITLink.cpp
    M llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp

  Log Message:
  -----------
  [JITLink] Fix splitBlock if there are symbols span across the boundary

Fix `splitBlock` so that it can handle the case when the block being
split has symbols span across the split boundary. This is an error
case in general but for EHFrame splitting on macho platforms, there is an
anonymous symbol that marks the entire block. Current implementation
will leave a symbol that is out of bound of the underlying block. Fix
the problem by dropping such symbols when the block is split.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D113912




More information about the All-commits mailing list