Don't carry over the dispatchsetup hack from the old system.
authorBill Wendling <isanbard@gmail.com>
Mon, 3 Oct 2011 22:42:40 +0000 (22:42 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 3 Oct 2011 22:42:40 +0000 (22:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141040 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SjLjEHPrepare.cpp

index 127ebcf660619f113da34cd79edfea0e53550f3c..76b327a8eb24ccef0259063de8423d9d58f9a709 100644 (file)
@@ -849,13 +849,7 @@ bool SjLjEHPass::setupEntryBlockAndCallSites(Function &F) {
     CastInst::Create(Instruction::BitCast, JBufPtr,
                      Type::getInt8PtrTy(F.getContext()), "",
                      EntryBB->getTerminator());
-  Value *DispatchVal = CallInst::Create(BuiltinSetjmpFn, SetjmpArg,
-                                        "dispatch",
-                                        EntryBB->getTerminator());
-
-  // Add a call to dispatch_setup after the setjmp call. This is expanded to any
-  // target-specific setup that needs to be done.
-  CallInst::Create(DispatchSetupFn, DispatchVal, "", EntryBB->getTerminator());
+  CallInst::Create(BuiltinSetjmpFn, SetjmpArg, "", EntryBB->getTerminator());
 
   // Store a pointer to the function context so that the back-end will know
   // where to look for it.