Revert previous change to a comment. The BlockAddresses go in the

constant pool so they don't get wrapped separately.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson
2009-11-03 00:02:05 +00:00
parent 5cc66d979d
commit b62d257cf5

View File

@ -1186,12 +1186,12 @@ ARMTargetLowering::LowerReturn(SDValue Chain,
return result; return result;
} }
// ConstantPool, BlockAddress, JumpTable, GlobalAddress, and ExternalSymbol are // ConstantPool, JumpTable, GlobalAddress, and ExternalSymbol are lowered as
// lowered as their target counterpart wrapped in the ARMISD::Wrapper // their target counterpart wrapped in the ARMISD::Wrapper node. Suppose N is
// node. Suppose N is one of the above mentioned nodes. It has to be wrapped // one of the above mentioned nodes. It has to be wrapped because otherwise
// because otherwise Select(N) returns N. So the raw TargetGlobalAddress // Select(N) returns N. So the raw TargetGlobalAddress nodes, etc. can only
// nodes, etc. can only be used to form addressing mode. These wrapped nodes // be used to form addressing mode. These wrapped nodes will be selected
// will be selected into MOVi. // into MOVi.
static SDValue LowerConstantPool(SDValue Op, SelectionDAG &DAG) { static SDValue LowerConstantPool(SDValue Op, SelectionDAG &DAG) {
EVT PtrVT = Op.getValueType(); EVT PtrVT = Op.getValueType();
// FIXME there is no actual debug info here // FIXME there is no actual debug info here