Add support for the Invoke instruction by using the LowerInvoke pass
authorChris Lattner <sabre@nondot.org>
Sun, 5 Oct 2003 19:16:09 +0000 (19:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 5 Oct 2003 19:16:09 +0000 (19:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8872 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9TargetMachine.cpp

index 8ec0ada1f843728690500aa8eab8a6d65c248cdf..8c87ca31842f7553670b5209f9993ce5382e4953 100644 (file)
@@ -158,6 +158,9 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
 
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());
+
+  // FIXME: implement the invoke/unwind instructions!
+  PM.add(createLowerInvokePass());
   
   // decompose multi-dimensional array references into single-dim refs
   PM.add(createDecomposeMultiDimRefsPass());
@@ -234,6 +237,9 @@ bool UltraSparc::addPassesToJITCompile(FunctionPassManager &PM) {
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());
 
+  // FIXME: implement the invoke/unwind instructions!
+  PM.add(createLowerInvokePass());
+
   // decompose multi-dimensional array references into single-dim refs
   PM.add(createDecomposeMultiDimRefsPass());