diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-11-09 01:27:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-11-09 01:27:11 +0000 |
commit | 7da8f399bf09e9a03fe8bdd8c8eef6e5a7d87327 (patch) | |
tree | c3eb8707856572068e1b80e930f03f425ba178ab /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 77819419b87d9ba12809ea05bb86a95d746b5721 (diff) |
Bug fix. Passive nodes are not in SUnitMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 3708b1cb9a..eadfa1fbb2 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -393,6 +393,13 @@ unsigned TargetLowering::getVectorTypeBreakdown(MVT::ValueType VT, return 1; } +SDOperand TargetLowering::getPICJumpTableRelocBase(SDOperand Table, + SelectionDAG &DAG) const { + if (usesGlobalOffsetTable()) + return DAG.getNode(ISD::GLOBAL_OFFSET_TABLE, getPointerTy()); + return Table; +} + //===----------------------------------------------------------------------===// // Optimization Methods //===----------------------------------------------------------------------===// |