summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-15 21:51:10 +0000
committerOwen Anderson <resistor@mac.com>2009-07-15 21:51:10 +0000
commitf945a9ed07773d9f2f9d631d7540b18f8ebccb04 (patch)
treebe301ffe0d5fba090f05d008ffcb2bef131b2ebc /llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
parentd098c5a0fc9273fda89a50c4fc4bc4210ffb947d (diff)
downloadbcm5719-llvm-f945a9ed07773d9f2f9d631d7540b18f8ebccb04.tar.gz
bcm5719-llvm-f945a9ed07773d9f2f9d631d7540b18f8ebccb04.zip
Move a few more convenience factory functions from Constant to LLVMContext.
llvm-svn: 75840
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
index 8f704ecaa5b..97b16dd608d 100644
--- a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
@@ -30,6 +30,7 @@
#include "llvm/Constants.h"
#include "llvm/GlobalValue.h"
#include "llvm/Intrinsics.h"
+#include "llvm/LLVMContext.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
@@ -305,7 +306,7 @@ namespace {
CV.push_back(const_cast<ConstantInt *> (V->getConstantIntValue()));
}
- Constant *CP = ConstantVector::get(CV);
+ Constant *CP = CurDAG->getContext()->getConstantVector(CV);
SDValue CPIdx = CurDAG->getConstantPool(CP, SPUtli.getPointerTy());
unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
SDValue CGPoolOffset =
OpenPOWER on IntegriCloud