aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorYusra Syeda <99052248+ysyeda@users.noreply.github.com>2023-12-19 13:58:33 -0500
committerGitHub <noreply@github.com>2023-12-19 13:58:33 -0500
commit0768253c20402c8a7a357210923c6867efc0ef5c (patch)
tree575124a9d3bd32a5402677b7f4c8df195e0a82cc /llvm/lib/CodeGen/TargetPassConfig.cpp
parentc88e74c26d5c258d42f069540fc046d52c420927 (diff)
downloadllvm-0768253c20402c8a7a357210923c6867efc0ef5c.zip
llvm-0768253c20402c8a7a357210923c6867efc0ef5c.tar.gz
llvm-0768253c20402c8a7a357210923c6867efc0ef5c.tar.bz2
[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 <yusra.syeda@ibm.com>
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index faa5466..4003a08 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -947,6 +947,7 @@ void TargetPassConfig::addPassesToHandleExceptions() {
case ExceptionHandling::DwarfCFI:
case ExceptionHandling::ARM:
case ExceptionHandling::AIX:
+ case ExceptionHandling::ZOS:
addPass(createDwarfEHPass(getOptLevel()));
break;
case ExceptionHandling::WinEH: