OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
569d9d9
)
Add CodeGen support for indirect branches.
author
Dan Gohman
<gohman@apple.com>
Tue, 27 Oct 2009 21:56:26 +0000
(21:56 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 27 Oct 2009 21:56:26 +0000
(21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85323
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index
59357ae
..
d68d248
100644
(file)
--- 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())));
}