Replace r168930 with a more reasonable patch.
authorBill Wendling <isanbard@gmail.com>
Fri, 30 Nov 2012 22:08:55 +0000 (22:08 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 30 Nov 2012 22:08:55 +0000 (22:08 +0000)
commit08510b14d4fe5d9b1a979fbee8a7aad11dbc6cea
treebffe39f76d8df42d0557b40e7c80bc2d3359fa47
parentc2a08d28eb1199d67dff5b66061cf7f6a25d2527
Replace r168930 with a more reasonable patch.

The original patch removed a bunch of code that the SjLjEHPrepare pass placed
into the entry block if all of the landing pads were removed during the
CodeGenPrepare class. The more natural way of doing things is to run the CGP
*before* we run the SjLjEHPrepare pass.

Make it so!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169044 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/Passes.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/Passes.cpp
lib/Transforms/Scalar/CodeGenPrepare.cpp