diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-24 00:36:24 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-24 00:36:24 +0000 |
commit | 226b21676f7f21cd4c0e3e48e5c16308a0a41822 (patch) | |
tree | 235459cdde1f0a882a34eb024e72dce11b333e3b /lib/VMCore/LLVMContext.cpp | |
parent | efb657e926924b10fe0eed4c27c63155d089b6ef (diff) | |
download | external_llvm-226b21676f7f21cd4c0e3e48e5c16308a0a41822.zip external_llvm-226b21676f7f21cd4c0e3e48e5c16308a0a41822.tar.gz external_llvm-226b21676f7f21cd4c0e3e48e5c16308a0a41822.tar.bz2 |
Privatize the ConstantVector tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 5a4cf20..d0f05eb 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -531,7 +531,7 @@ ConstantFP* LLVMContext::getConstantFPNegativeZero(const Type* Ty) { // ConstantVector accessors. Constant* LLVMContext::getConstantVector(const VectorType* T, const std::vector<Constant*>& V) { - return ConstantVector::get(T, V); + return pImpl->getConstantVector(T, V); } Constant* LLVMContext::getConstantVector(const std::vector<Constant*>& V) { @@ -662,6 +662,10 @@ void LLVMContext::erase(ConstantStruct *S) { pImpl->erase(S); } +void LLVMContext::erase(ConstantVector *V) { + pImpl->erase(V); +} + Constant *LLVMContext::replaceUsesOfWithOnConstant(ConstantArray *CA, Value *From, Value *To, Use *U) { return pImpl->replaceUsesOfWithOnConstant(CA, From, To, U); |