summaryrefslogtreecommitdiff
path: root/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
commit64825153a219b40bcdb79861fb6ac4fd8eadd616 (patch)
tree1e42d6713bca72d4d2758fa7a99f9360b43d2e10 /lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
parent569d9d910b0b97323ce4292d8058acd2d3083c85 (diff)
downloadllvm-64825153a219b40bcdb79861fb6ac4fd8eadd616.tar.gz
llvm-64825153a219b40bcdb79861fb6ac4fd8eadd616.tar.bz2
llvm-64825153a219b40bcdb79861fb6ac4fd8eadd616.tar.xz
Add CodeGen support for indirect branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 59357aeff2..d68d2487d3 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())));
}