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 | 822ccd9974a17979d2cb9c6c118f94549055b7d4 (patch) | |
tree | 66b5ecb11b41613c409a726addc82dd054c9de70 /lib/VMCore/LLVMContext.cpp | |
parent | f6fa8ae267e0320dcee609b6bb4061bde3b62ba4 (diff) | |
download | external_llvm-822ccd9974a17979d2cb9c6c118f94549055b7d4.zip external_llvm-822ccd9974a17979d2cb9c6c118f94549055b7d4.tar.gz external_llvm-822ccd9974a17979d2cb9c6c118f94549055b7d4.tar.bz2 |
Privatize the ConstantArray table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 782a87b..7194c2e 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/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 |