diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-05-12 23:59:14 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-05-12 23:59:14 +0000 |
commit | c10915b85165887e1886179338c7d14925f95c52 (patch) | |
tree | aa04b7f115b464f914893e1e637c808794af646e /lib/Target/ARM/ARMInstrInfo.cpp | |
parent | c4ee366f3ae6c503cbd09b1d25cd964bd5c800bc (diff) | |
download | external_llvm-c10915b85165887e1886179338c7d14925f95c52.zip external_llvm-c10915b85165887e1886179338c7d14925f95c52.tar.gz external_llvm-c10915b85165887e1886179338c7d14925f95c52.tar.bz2 |
Add support for GCC compatible builtin setjmp and longjmp intrinsics. This is
a supporting preliminary patch for GCC-compatible SjLJ exception handling. Note that these intrinsics are not designed to be invoked directly by the user, but
rather used by the front-end as target hooks for exception handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.cpp b/lib/Target/ARM/ARMInstrInfo.cpp index f186823..235d1d1 100644 --- a/lib/Target/ARM/ARMInstrInfo.cpp +++ b/lib/Target/ARM/ARMInstrInfo.cpp @@ -991,6 +991,7 @@ unsigned ARMInstrInfo::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_builtin_setjmp: return 12; case ARM::BR_JTr: case ARM::BR_JTm: case ARM::BR_JTadd: |