forked from OSchip/llvm-project
Add CodeGen support for indirect branches.
llvm-svn: 85323
This commit is contained in:
parent
b4f2a24363
commit
a4374e66f0
|
@ -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())));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue