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 | aeca45dd6f169a0cd7ca4bf012c26fbc0483f36b (patch) | |
tree | 62d60013bb864e868c6d5af3512a3b25a7493527 /llvm/lib/Target/ARM/ARMInstrInfo.cpp | |
parent | 85cca64dd759a1225544d58b54d612f99940b998 (diff) | |
download | bcm5719-llvm-aeca45dd6f169a0cd7ca4bf012c26fbc0483f36b.tar.gz bcm5719-llvm-aeca45dd6f169a0cd7ca4bf012c26fbc0483f36b.zip |
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.
llvm-svn: 71610
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp index f186823f0c8..235d1d1d50d 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp +++ b/llvm/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: |