summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-28 21:19:26 +0000
committerOwen Anderson <resistor@mac.com>2009-07-28 21:19:26 +0000
commit4aa3295a655e48bbb065ac1d51bc1eb890cda4dd (patch)
tree97b1c1e6d93d0091668cc8dbbe004e9589f461d0 /llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
parent019f4142610d4a3bfb24dca0224770ff9e512706 (diff)
downloadbcm5719-llvm-4aa3295a655e48bbb065ac1d51bc1eb890cda4dd.tar.gz
bcm5719-llvm-4aa3295a655e48bbb065ac1d51bc1eb890cda4dd.zip
Return ConstantVector to 2.5 API.
llvm-svn: 77366
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
index 97b16dd608d..d29ddaac4b3 100644
--- a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
@@ -306,7 +306,7 @@ namespace {
CV.push_back(const_cast<ConstantInt *> (V->getConstantIntValue()));
}
- Constant *CP = CurDAG->getContext()->getConstantVector(CV);
+ Constant *CP = ConstantVector::get(CV);
SDValue CPIdx = CurDAG->getConstantPool(CP, SPUtli.getPointerTy());
unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
SDValue CGPoolOffset =
OpenPOWER on IntegriCloud