From: Dan Gohman Date: Tue, 27 Oct 2009 21:56:26 +0000 (+0000) Subject: Add CodeGen support for indirect branches. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=64825153a219b40bcdb79861fb6ac4fd8eadd616;p=oota-llvm.git Add CodeGen support for indirect branches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85323 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 59357aeff2a..d68d2487d32 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -2132,8 +2132,9 @@ void SelectionDAGLowering::visitSwitch(SwitchInst &SI) { } 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()))); }