diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-21 20:55:28 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-21 20:55:28 +0000 |
commit | 3d34492c1f293257b1e9842bc2d25122f87f82a1 (patch) | |
tree | 008ddca4262c4f280c654f6fc811f04a151e128a /llvm/lib/VMCore/LLVMContext.cpp | |
parent | 5e7869f63e7a415f2494058ddb8b9e411d93c4a6 (diff) | |
download | bcm5719-llvm-3d34492c1f293257b1e9842bc2d25122f87f82a1.tar.gz bcm5719-llvm-3d34492c1f293257b1e9842bc2d25122f87f82a1.zip |
Privatize the ConstantArray table.
llvm-svn: 76639
Diffstat (limited to 'llvm/lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/VMCore/LLVMContext.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp index 782a87b04b0..7194c2e1585 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/lib/VMCore/LLVMContext.cpp @@ -174,7 +174,7 @@ ConstantAggregateZero* LLVMContext::getConstantAggregateZero(const Type* Ty) { // ConstantArray accessors. Constant* LLVMContext::getConstantArray(const ArrayType* T, const std::vector<Constant*>& V) { - return ConstantArray::get(T, V); + return pImpl->getConstantArray(T, V); } Constant* LLVMContext::getConstantArray(const ArrayType* T, @@ -652,4 +652,13 @@ void LLVMContext::erase(MDNode *M) { void LLVMContext::erase(ConstantAggregateZero *Z) { pImpl->erase(Z); +} + +void LLVMContext::erase(ConstantArray *C) { + pImpl->erase(C); +} + +Constant *LLVMContext::replaceUsesOfWithOnConstant(ConstantArray *CA, + Value *From, Value *To, Use *U) { + return pImpl->replaceUsesOfWithOnConstant(CA, From, To, U); }
\ No newline at end of file |