[llvm-commits] [llvm] r85323 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

Dan Gohman gohman at apple.com
Tue Oct 27 14:56:26 PDT 2009


Author: djg
Date: Tue Oct 27 16:56:26 2009
New Revision: 85323

URL: http://llvm.org/viewvc/llvm-project?rev=85323&view=rev
Log:
Add CodeGen support for indirect branches.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=85323&r1=85322&r2=85323&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Tue Oct 27 16:56:26 2009
@@ -2132,8 +2132,9 @@
 }
 
 void SelectionDAGLowering::visitIndBr(IndBrInst &I) {
-  errs() << "indbr codegen not implemented yet!\n";
-  abort();
+  DAG.setRoot(DAG.getNode(ISD::BRIND, getCurDebugLoc(),
+                          MVT::Other, getControlRoot(),
+                          getValue(I.getAddress())));
 }
 
 





More information about the llvm-commits mailing list