summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-27 21:56:26 +0000
committerDan Gohman <gohman@apple.com>2009-10-27 21:56:26 +0000
commita4374e66f0b92446c4fee3f3f61329a5ff832ba6 (patch)
treec7aed2e1205e471e7015fa907b440e425aeb68ef /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
parentb4f2a24363992d65ac8fda68cdb1f5822ea31299 (diff)
downloadbcm5719-llvm-a4374e66f0b92446c4fee3f3f61329a5ff832ba6.tar.gz
bcm5719-llvm-a4374e66f0b92446c4fee3f3f61329a5ff832ba6.zip
Add CodeGen support for indirect branches.
llvm-svn: 85323
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 59357aeff2a..d68d2487d32 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/llvm/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())));
}
OpenPOWER on IntegriCloud