diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-11-15 02:46:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-11-15 02:46:57 +0000 |
| commit | edb9d84dcc4824865e86f963e52d67eb50dde7f5 (patch) | |
| tree | 30482808686a63895173c1da6b5d9953e31c8988 /llvm/lib/Target/X86/X86ISelLowering.cpp | |
| parent | e75bb3496323f1e1f86acf5522c499a1a54ff95f (diff) | |
| download | bcm5719-llvm-edb9d84dcc4824865e86f963e52d67eb50dde7f5.tar.gz bcm5719-llvm-edb9d84dcc4824865e86f963e52d67eb50dde7f5.zip | |
add targetoperand flags for jump tables, constant pool and block address
nodes to indicate when ha16/lo16 modifiers should be used. This lets
us pass PowerPC/indirectbr.ll.
The one annoying thing about this patch is that the MCSymbolExpr isn't
expressive enough to represent ha16(label1-label2) which we need on
PowerPC. I have a terrible hack in the meantime, but this will have
to be revisited at some point.
Last major conversion item left is global variable references.
llvm-svn: 119105
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index a3cd0359a5e..6233af5d52b 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -5884,12 +5884,11 @@ SDValue X86TargetLowering::LowerJumpTable(SDValue Op, SelectionDAG &DAG) const { Result = DAG.getNode(WrapperKind, DL, getPointerTy(), Result); // With PIC, the address is actually $g + Offset. - if (OpFlag) { + if (OpFlag) Result = DAG.getNode(ISD::ADD, DL, getPointerTy(), DAG.getNode(X86ISD::GlobalBaseReg, DebugLoc(), getPointerTy()), Result); - } return Result; } |

