From 0768253c20402c8a7a357210923c6867efc0ef5c Mon Sep 17 00:00:00 2001 From: Yusra Syeda <99052248+ysyeda@users.noreply.github.com> Date: Tue, 19 Dec 2023 13:58:33 -0500 Subject: [SystemZ][z/OS] Add exception handling for XPLINK (#74638) Adds emitting the exception table and the EH registers for XPLINK. --------- Co-authored-by: Yusra Syeda --- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp') diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 9a0dd92..6e69dc6 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -2681,6 +2681,13 @@ MCSection *TargetLoweringObjectFileGOFF::getExplicitSectionGlobal( return SelectSectionForGlobal(GO, Kind, TM); } +MCSection *TargetLoweringObjectFileGOFF::getSectionForLSDA( + const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { + std::string Name = ".gcc_exception_table." + F.getName().str(); + return getContext().getGOFFSection(Name, SectionKind::getData(), nullptr, + nullptr); +} + MCSection *TargetLoweringObjectFileGOFF::SelectSectionForGlobal( const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { auto *Symbol = TM.getSymbol(GO); -- cgit v1.1