Ahem...actually *add* the ARMSjLjLowering pass to the pass manager.
authorBill Wendling <isanbard@gmail.com>
Wed, 28 Sep 2011 20:29:28 +0000 (20:29 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 28 Sep 2011 20:29:28 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140718 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMTargetMachine.cpp

index a75ce264cd3c7a477e88703d51b8220c15d37ed6..3010acae0c7d7beee42eb429a09ac287b0a480c9 100644 (file)
@@ -109,7 +109,7 @@ bool ARMBaseTargetMachine::addPreRegAlloc(PassManagerBase &PM,
   if (OptLevel != CodeGenOpt::None && Subtarget.isCortexA9())
     PM.add(createMLxExpansionPass());
   if (getMCAsmInfo()->getExceptionHandlingType() == ExceptionHandling::SjLj)
-    createARMSjLjLoweringPass();
+    PM.add(createARMSjLjLoweringPass());
   return true;
 }