diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-27 21:56:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-27 21:56:26 +0000 |
commit | 2b87f2ae510bb5298482aba49c63c49840b0db7d (patch) | |
tree | 1e42d6713bca72d4d2758fa7a99f9360b43d2e10 | |
parent | fd9ff122e342300ebbd082b41439c28097d3f632 (diff) | |
download | external_llvm-2b87f2ae510bb5298482aba49c63c49840b0db7d.zip external_llvm-2b87f2ae510bb5298482aba49c63c49840b0db7d.tar.gz external_llvm-2b87f2ae510bb5298482aba49c63c49840b0db7d.tar.bz2 |
Add CodeGen support for indirect branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85323 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 59357ae..d68d248 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()))); } |