diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-08-04 21:44:13 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-08-04 21:44:13 +0000 |
| commit | b87f3e5a7dfecf248b7282e5e183d4a7a0fe0660 (patch) | |
| tree | 297eb31a4ea7cc081829697ae288130d0ef574be /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | 6e1a2a0693904aac49005ea51797821e33392e41 (diff) | |
| download | bcm5719-llvm-b87f3e5a7dfecf248b7282e5e183d4a7a0fe0660.tar.gz bcm5719-llvm-b87f3e5a7dfecf248b7282e5e183d4a7a0fe0660.zip | |
The EH prepare passes really want to be the last passes run before code-gen.
llvm-svn: 110248
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 02d43b83880..807ceefd137 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -272,6 +272,11 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &dbgs())); } + PM.add(createGCLoweringPass()); + + // Make sure that no unreachable blocks are instruction selected. + PM.add(createUnreachableBlockEliminationPass()); + // Turn exception handling constructs into something the code generators can // handle. switch (getMCAsmInfo()->getExceptionHandlingType()) { @@ -293,11 +298,6 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, break; } - PM.add(createGCLoweringPass()); - - // Make sure that no unreachable blocks are instruction selected. - PM.add(createUnreachableBlockEliminationPass()); - if (OptLevel != CodeGenOpt::None && !DisableCGP) PM.add(createCodeGenPreparePass(getTargetLowering())); |

