diff options
author | Dale Johannesen <dalej@apple.com> | 2009-02-04 20:06:27 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-02-04 20:06:27 +0000 |
commit | ea99692c6c7dac4b4280286323c548c778de9993 (patch) | |
tree | 12fc0afa40a4f182305d0516144832f1ca34c28a /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 08e1f78b7874bf9fdff5fa6ce9d9ec61d61cb796 (diff) | |
download | external_llvm-ea99692c6c7dac4b4280286323c548c778de9993.zip external_llvm-ea99692c6c7dac4b4280286323c548c778de9993.tar.gz external_llvm-ea99692c6c7dac4b4280286323c548c778de9993.tar.bz2 |
Remove non-DebugLoc versions of getLoad and getStore.
Adjust the many callers of those versions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index b0ab178..dc3b8eb 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -556,6 +556,7 @@ void SelectionDAGLegalize::HandleOp(SDValue Op) { static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP, SelectionDAG &DAG, const TargetLowering &TLI) { bool Extend = false; + DebugLoc dl = CFP->getDebugLoc(); // If a FP immediate is precise when represented as a float and if the // target can do an extending load from float to double, we put it into @@ -591,11 +592,11 @@ static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP, SDValue CPIdx = DAG.getConstantPool(LLVMC, TLI.getPointerTy()); unsigned Alignment = 1 << cast<ConstantPoolSDNode>(CPIdx)->getAlignment(); if (Extend) - return DAG.getExtLoad(ISD::EXTLOAD, CFP->getDebugLoc(), + return DAG.getExtLoad(ISD::EXTLOAD, dl, OrigVT, DAG.getEntryNode(), CPIdx, PseudoSourceValue::getConstantPool(), 0, VT, false, Alignment); - return DAG.getLoad(OrigVT, DAG.getEntryNode(), CPIdx, + return DAG.getLoad(OrigVT, dl, DAG.getEntryNode(), CPIdx, PseudoSourceValue::getConstantPool(), 0, false, Alignment); } |