OSDN Git Service

[JITLink] Allow zero-length symbols at the end of blocks.
authorLang Hames <lhames@gmail.com>
Fri, 19 Jun 2020 17:01:12 +0000 (10:01 -0700)
committerLang Hames <lhames@gmail.com>
Fri, 19 Jun 2020 17:05:02 +0000 (10:05 -0700)
commit22d7a01dd7282ee5e70ce57a8c1465fd335ea27d
tree4dc45bdd60ce5a6dab87ace7128dd590058fe06c
parentbf783a6aa890d7e759f2e920e89ca6179e6c7fc0
[JITLink] Allow zero-length symbols at the end of blocks.

This relaxes an assertion that required symbols to start before the end
of a block. Instead, symbols are now required to end on or before the
end of a block. This fixes two important corner cases: Symbols at the
start of empty blocks/sections, and block/section end symbols.
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
llvm/test/ExecutionEngine/JITLink/X86/MachO_empty_section.s [new file with mode: 0644]