diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-05-22 01:06:18 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-05-22 01:06:18 +0000 |
commit | bd9485db634dd2341f6e766e99bff758793d0d42 (patch) | |
tree | ed2f5fb46c5f568aecdc2787d18970caa2a035c6 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 64087cd34609b379a08736795fe3ab70f4148053 (diff) | |
download | bcm5719-llvm-bd9485db634dd2341f6e766e99bff758793d0d42.tar.gz bcm5719-llvm-bd9485db634dd2341f6e766e99bff758793d0d42.zip |
Implement eh.sjlj.longjmp for ARM. Clean up the intrinsic a bit.
Followups: docs patch for the builtin and eh.sjlj.setjmp cleanup to match
longjmp.
llvm-svn: 104419
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index d8083629975..b306ff6e578 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -4038,6 +4038,11 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { MMI.setCurrentCallSite(CI->getZExtValue()); return 0; } + case Intrinsic::eh_sjlj_longjmp: { + DAG.setRoot(DAG.getNode(ISD::EH_SJLJ_LONGJMP, dl, MVT::Other, getRoot(), + getValue(I.getOperand(1)))); + return 0; + } case Intrinsic::convertff: case Intrinsic::convertfsi: |