[PowerPC][AIX] Override markFunctionEnd()
authorSean Fertile <sd.fertile@gmail.com>
Thu, 20 Jan 2022 18:30:42 +0000 (13:30 -0500)
committerSean Fertile <sd.fertile@gmail.com>
Tue, 25 Jan 2022 15:08:53 +0000 (10:08 -0500)
commita2505bd063e7949e2f0d892d85dec360fb28c702
treeaab66ea5b51196f6ea0f880ded738e78a6c856b0
parentea4b0489f5caf136aefe04869d650aa8d966041c
[PowerPC][AIX] Override markFunctionEnd()

During fast-isel calling 'markFunctionEnd' in the base class will call
tidyLandingPads. This can cause an issue where we have determined that
we need ehinfo and emitted a traceback table with the bits set to
indicate that we will be emitting the ehinfo, but the tidying deletes
all landing pads. In this case we end up emitting a reference to
__ehinfo.N symbol, but not emitting a definition to said symbol and the
resulting file fails to assemble.

Differential Revision: https://reviews.llvm.org/D117040
llvm/lib/CodeGen/AsmPrinter/AIXException.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfException.h
llvm/test/CodeGen/PowerPC/aix-ehinfo-sym.ll [new file with mode: 0644]