summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h
index c0926033353..f2cdcf4a0d3 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.h
+++ b/llvm/lib/VMCore/LLVMContextImpl.h
@@ -74,7 +74,7 @@ template<>
struct ConvertConstantType<ConstantAggregateZero, Type> {
static void convert(ConstantAggregateZero *OldC, const Type *NewTy) {
// Make everyone now use a constant of the new type...
- Constant *New = NewTy->getContext().getConstantAggregateZero(NewTy);
+ Constant *New = ConstantAggregateZero::get(NewTy);
assert(New != OldC && "Didn't replace constant??");
OldC->uncheckedReplaceAllUsesWith(New);
OldC->destroyConstant(); // This constant is now dead, destroy it.
@@ -461,6 +461,7 @@ class LLVMContextImpl {
friend class ConstantStruct;
friend class ConstantArray;
friend class ConstantVector;
+ friend class ConstantAggregateZero;
public:
LLVMContextImpl(LLVMContext &C);
@@ -468,8 +469,6 @@ public:
MDNode *getMDNode(Value*const* Vals, unsigned NumVals);
- ConstantAggregateZero *getConstantAggregateZero(const Type *Ty);
-
ConstantInt *getTrue() {
if (TheTrueVal)
return TheTrueVal;
@@ -486,7 +485,6 @@ public:
void erase(MDString *M);
void erase(MDNode *M);
- void erase(ConstantAggregateZero *Z);
};
}
OpenPOWER on IntegriCloud