aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-24 00:36:24 +0000
committerOwen Anderson <resistor@mac.com>2009-07-24 00:36:24 +0000
commit5bd68393ed87bcedc53f5998f1af9c906f5a1b4e (patch)
tree235459cdde1f0a882a34eb024e72dce11b333e3b /lib/VMCore/LLVMContext.cpp
parentfbd6687cf1fb3408e8e34994f13e69c754e5c15e (diff)
downloadexternal_llvm-5bd68393ed87bcedc53f5998f1af9c906f5a1b4e.zip
external_llvm-5bd68393ed87bcedc53f5998f1af9c906f5a1b4e.tar.gz
external_llvm-5bd68393ed87bcedc53f5998f1af9c906f5a1b4e.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.cpp6
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);