diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
| commit | 4aa3295a655e48bbb065ac1d51bc1eb890cda4dd (patch) | |
| tree | 97b1c1e6d93d0091668cc8dbbe004e9589f461d0 /llvm/lib/CodeGen | |
| parent | 019f4142610d4a3bfb24dca0224770ff9e512706 (diff) | |
| download | bcm5719-llvm-4aa3295a655e48bbb065ac1d51bc1eb890cda4dd.tar.gz bcm5719-llvm-4aa3295a655e48bbb065ac1d51bc1eb890cda4dd.zip | |
Return ConstantVector to 2.5 API.
llvm-svn: 77366
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 4f4c255b082..32f70a74caf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1849,7 +1849,7 @@ SDValue SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { CV.push_back(Context->getUndef(OpNTy)); } } - Constant *CP = Context->getConstantVector(CV); + Constant *CP = ConstantVector::get(CV); SDValue CPIdx = DAG.getConstantPool(CP, TLI.getPointerTy()); unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment(); return DAG.getLoad(VT, dl, DAG.getEntryNode(), CPIdx, diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 3a8b782564c..7134938060e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -2149,7 +2149,7 @@ void SelectionDAGLowering::visitFSub(User &I) { const Type *ElTy = DestTy->getElementType(); unsigned VL = DestTy->getNumElements(); std::vector<Constant*> NZ(VL, ConstantFP::getNegativeZero(ElTy)); - Constant *CNZ = DAG.getContext()->getConstantVector(&NZ[0], NZ.size()); + Constant *CNZ = ConstantVector::get(&NZ[0], NZ.size()); if (CV == CNZ) { SDValue Op2 = getValue(I.getOperand(1)); setValue(&I, DAG.getNode(ISD::FNEG, getCurDebugLoc(), |

