aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-05-22 01:06:18 +0000
committerJim Grosbach <grosbach@apple.com>2010-05-22 01:06:18 +0000
commit237b7dd26af11c4e0e8d1acc829cf12bfb50cd1a (patch)
tree07e304b2e509bff3f7d13b6b0c3a730e59730d50 /lib/Target/ARM/ARMBaseInstrInfo.cpp
parent09fae6d6658f811bcb40da1b5ce541ab1a82b808 (diff)
downloadexternal_llvm-237b7dd26af11c4e0e8d1acc829cf12bfb50cd1a.zip
external_llvm-237b7dd26af11c4e0e8d1acc829cf12bfb50cd1a.tar.gz
external_llvm-237b7dd26af11c4e0e8d1acc829cf12bfb50cd1a.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMBaseInstrInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index b2f67d8..312f187 100644
--- a/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -481,6 +481,10 @@ unsigned ARMBaseInstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const {
// If this machine instr is a constant pool entry, its size is recorded as
// operand #2.
return MI->getOperand(2).getImm();
+ case ARM::Int_eh_sjlj_longjmp:
+ return 16;
+ case ARM::tInt_eh_sjlj_longjmp:
+ return 10;
case ARM::Int_eh_sjlj_setjmp:
case ARM::Int_eh_sjlj_setjmp_nofp:
return 24;