[llvm-branch-commits] [llvm-branch] r83108 - in /llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG: FastISel.cpp SelectionDAGBuild.cpp

Eric Christopher echristo at apple.com
Tue Sep 29 13:47:15 PDT 2009


Author: echristo
Date: Tue Sep 29 15:47:14 2009
New Revision: 83108

URL: http://llvm.org/viewvc/llvm-project?rev=83108&view=rev
Log:
Make sure FastIsel adds catch information. Add comment for a TODO.

Modified:
    llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/FastISel.cpp
    llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

Modified: llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=83108&r1=83107&r2=83108&view=diff

==============================================================================
--- llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/FastISel.cpp Tue Sep 29 15:47:14 2009
@@ -489,6 +489,9 @@
       EVT VT = (IID == Intrinsic::eh_personality_i32 ? MVT::i32 : MVT::i64);
 
       if (MMI) {
+	// TODO: Figure if this is correct.
+	AddCatchInfo(*cast<CallInst>(I), MMI, MBB);
+
         // FIXME: Mark exception selector register as live in.  Hack for PR1508.
         unsigned Reg = TLI.getExceptionSelectorRegister();
         if (Reg) MBB->addLiveIn(Reg);

Modified: llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=83108&r1=83107&r2=83108&view=diff

==============================================================================
--- llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Tue Sep 29 15:47:14 2009
@@ -3999,6 +3999,7 @@
   case Intrinsic::eh_personality_i32:
   case Intrinsic::eh_personality_i64: {
     MachineModuleInfo *MMI = DAG.getMachineModuleInfo();
+    // TODO: Figure out if we want to do this like this.
     AddCatchInfo(I, MMI, CurMBB);
 
     // FIXME: Mark exception selector register as live in.  Hack for PR1508.





More information about the llvm-branch-commits mailing list