This fixes PR638:
authorJohn Criswell <criswell@uiuc.edu>
Wed, 19 Oct 2005 20:07:15 +0000 (20:07 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Wed, 19 Oct 2005 20:07:15 +0000 (20:07 +0000)
Regression/CodeGen/Generic/2004-02-08-UnwindSupport.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23831 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9TargetMachine.cpp

index 9e86a7560abcbe88439773da6a0a3d7ac6b2c27f..5cf46e0cea9511b2d09cd3356ec0084fdcc4e634 100644 (file)
@@ -171,12 +171,12 @@ SparcV9TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out,
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
 
-  // FIXME: implement the switch instruction in the instruction selector.
-  PM.add(createLowerSwitchPass());
-
   // FIXME: implement the invoke/unwind instructions!
   PM.add(createLowerInvokePass());
 
+  // FIXME: implement the switch instruction in the instruction selector.
+  PM.add(createLowerSwitchPass());
+
   // decompose multi-dimensional array references into single-dim refs
   PM.add(createDecomposeMultiDimRefsPass());
 
@@ -262,12 +262,12 @@ void SparcV9JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
 
-  // FIXME: implement the switch instruction in the instruction selector.
-  PM.add(createLowerSwitchPass());
-
   // FIXME: implement the invoke/unwind instructions!
   PM.add(createLowerInvokePass());
 
+  // FIXME: implement the switch instruction in the instruction selector.
+  PM.add(createLowerSwitchPass());
+
   // decompose multi-dimensional array references into single-dim refs
   PM.add(createDecomposeMultiDimRefsPass());