diff options
author | Dale Johannesen <dalej@apple.com> | 2009-02-06 23:05:02 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-02-06 23:05:02 +0000 |
commit | e8d7230f480654cdb8ff1c3d0a38e1e9ab0bd55f (patch) | |
tree | 549d56aad780475ce3fa10a4fb13248073d6dac0 /lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp | |
parent | e72c5964d5263f2489bf2c7e9d32f71271d205fc (diff) | |
download | external_llvm-e8d7230f480654cdb8ff1c3d0a38e1e9ab0bd55f.zip external_llvm-e8d7230f480654cdb8ff1c3d0a38e1e9ab0bd55f.tar.gz external_llvm-e8d7230f480654cdb8ff1c3d0a38e1e9ab0bd55f.tar.bz2 |
Remove more non-DebugLoc getNode variants. Use
getCALLSEQ_{END,START} to permit passing no DebugLoc
there. UNDEF doesn't logically have DebugLoc; add
getUNDEF to encapsulate this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp index ced2e1f..65c0020 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp @@ -332,7 +332,7 @@ SDValue DAGTypeLegalizer::ExpandOp_SCALAR_TO_VECTOR(SDNode *N) { unsigned NumElts = VT.getVectorNumElements(); SmallVector<SDValue, 16> Ops(NumElts); Ops[0] = N->getOperand(0); - SDValue UndefVal = DAG.getNode(ISD::UNDEF, dl, Ops[0].getValueType()); + SDValue UndefVal = DAG.getUNDEF(Ops[0].getValueType()); for (unsigned i = 1; i < NumElts; ++i) Ops[i] = UndefVal; return DAG.getNode(ISD::BUILD_VECTOR, dl, VT, &Ops[0], NumElts); @@ -433,6 +433,6 @@ void DAGTypeLegalizer::SplitRes_UNDEF(SDNode *N, SDValue &Lo, SDValue &Hi) { MVT LoVT, HiVT; DebugLoc dl = N->getDebugLoc(); GetSplitDestVTs(N->getValueType(0), LoVT, HiVT); - Lo = DAG.getNode(ISD::UNDEF, dl, LoVT); - Hi = DAG.getNode(ISD::UNDEF, dl, HiVT); + Lo = DAG.getUNDEF(LoVT); + Hi = DAG.getUNDEF(HiVT); } |