[PATCH] D124855: [XCOFF][AIX] Use unique section names for LSDA and EH info sections with -ffunction-sections
Xing Xue via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 07:45:25 PDT 2022
xingxue created this revision.
xingxue added reviewers: MaskRay, hubert.reinterpretcast, sfertile, cebowleratibm.
xingxue added a project: LLVM.
Herald added subscribers: StephenFan, hiraditya, nemanjai.
Herald added a project: All.
xingxue requested review of this revision.
Herald added a subscriber: llvm-commits.
When `-ffunction-section` is on, this patch makes the compiler to generate unique LSDA and EH info sections for functions on AIX by appending the function name to the section name as a suffix. This will allow the AIX linker to garbage-collect unused function.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124855
Files:
llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
llvm/include/llvm/MC/MCSectionXCOFF.h
llvm/lib/CodeGen/AsmPrinter/AIXException.cpp
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/CodeGen/PowerPC/aix-exception.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124855.426691.patch
Type: text/x-patch
Size: 7265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/886bd406/attachment.bin>
More information about the llvm-commits
mailing list