diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-11-30 22:08:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-11-30 22:08:55 +0000 |
commit | 08510b14d4fe5d9b1a979fbee8a7aad11dbc6cea (patch) | |
tree | bffe39f76d8df42d0557b40e7c80bc2d3359fa47 /include/llvm/CodeGen/Passes.h | |
parent | c2a08d28eb1199d67dff5b66061cf7f6a25d2527 (diff) | |
download | llvm-08510b14d4fe5d9b1a979fbee8a7aad11dbc6cea.tar.gz llvm-08510b14d4fe5d9b1a979fbee8a7aad11dbc6cea.tar.bz2 llvm-08510b14d4fe5d9b1a979fbee8a7aad11dbc6cea.tar.xz |
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
Diffstat (limited to 'include/llvm/CodeGen/Passes.h')
-rw-r--r-- | include/llvm/CodeGen/Passes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index 44c9676b2c..282e4edcfb 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -141,6 +141,10 @@ public: /// Add passes to lower exception handling for the code generator. void addPassesToHandleExceptions(); + /// Add pass to prepare the LLVM IR for code generation. This should be done + /// before exception handling preparation passes. + virtual void addCodeGenPrepare(); + /// Add common passes that perform LLVM IR to IR transforms in preparation for /// instruction selection. virtual void addISelPrepare(); |