Add CodeGen support for indirect branches.

llvm-svn: 85323
This commit is contained in:
Dan Gohman 2009-10-27 21:56:26 +00:00
parent b4f2a24363
commit a4374e66f0
1 changed files with 3 additions and 2 deletions

View File

@ -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())));
}