diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-07-09 21:48:40 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-07-09 21:48:40 +0000 |
commit | 827f211e950a0a371af9f497365b19f34dfbd6ff (patch) | |
tree | 9d9c788a2f388d32feeb614c95381f012b9faa47 | |
parent | ccba68af825569c39b30521607d9659f0d15f9e0 (diff) |
Expose sjlj preparation through opt for my own debugging purposes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241864 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/InitializePasses.h | 1 | ||||
-rw-r--r-- | lib/CodeGen/SjLjEHPrepare.cpp | 2 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/InitializePasses.h b/include/llvm/InitializePasses.h index da614e46384..e3b9a95f0a3 100644 --- a/include/llvm/InitializePasses.h +++ b/include/llvm/InitializePasses.h @@ -303,6 +303,7 @@ void initializePlaceSafepointsPass(PassRegistry&); void initializeDwarfEHPreparePass(PassRegistry&); void initializeFloat2IntPass(PassRegistry&); void initializeLoopDistributePass(PassRegistry&); +void initializeSjLjEHPreparePass(PassRegistry&); } #endif diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp index 9ca83f8bfbb..d236e1f5ab6 100644 --- a/lib/CodeGen/SjLjEHPrepare.cpp +++ b/lib/CodeGen/SjLjEHPrepare.cpp @@ -82,6 +82,8 @@ private: } // end anonymous namespace char SjLjEHPrepare::ID = 0; +INITIALIZE_PASS(SjLjEHPrepare, "sjljehprepare", "Prepare SjLj exceptions", + false, false) // Public Interface To the SjLjEHPrepare pass. FunctionPass *llvm::createSjLjEHPreparePass() { return new SjLjEHPrepare(); } diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 55426e7b274..0db60d14440 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -324,6 +324,7 @@ int main(int argc, char **argv) { initializeRewriteSymbolsPass(Registry); initializeWinEHPreparePass(Registry); initializeDwarfEHPreparePass(Registry); + initializeSjLjEHPreparePass(Registry); #ifdef LINK_POLLY_INTO_TOOLS polly::initializePollyPasses(Registry); |