OSDN Git Service

Add a call to EmitSjLjDispatchBlock.
authorBill Wendling <isanbard@gmail.com>
Mon, 17 Oct 2011 20:37:20 +0000 (20:37 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 17 Oct 2011 20:37:20 +0000 (20:37 +0000)
Once the intrinsics are marked as having a custom inserter, it will call this
method to emit the dispatch table into the machine function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142245 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 56e06c0..dffc7c6 100644 (file)
@@ -6223,6 +6223,14 @@ ARMTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
     return BB;
   }
 
+  case ARM::Int_eh_sjlj_setjmp:
+  case ARM::Int_eh_sjlj_setjmp_nofp:
+  case ARM::tInt_eh_sjlj_setjmp:
+  case ARM::t2Int_eh_sjlj_setjmp:
+  case ARM::t2Int_eh_sjlj_setjmp_nofp:
+    EmitSjLjDispatchBlock(MI, BB);
+    return BB;
+
   case ARM::ABS:
   case ARM::t2ABS: {
     // To insert an ABS instruction, we have to insert the