diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-23 23:25:33 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-23 23:25:33 +0000 |
commit | 006c77df8cc7f6a9dac575600b797b8ba32b29eb (patch) | |
tree | 6e1d4a07734c199f8a3245fab69bf516ff93fce5 /lib/VMCore/LLVMContext.cpp | |
parent | ed0e2adc7076365596ee3d26d5ba5240ce13f23d (diff) |
Privatize the ConstantStruct table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76912 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 d0abb2df62..5a4cf2027d 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -146,7 +146,7 @@ ConstantPointerNull* LLVMContext::getConstantPointerNull(const PointerType* T) { // ConstantStruct accessors. Constant* LLVMContext::getConstantStruct(const StructType* T, const std::vector<Constant*>& V) { - return ConstantStruct::get(T, V); + return pImpl->getConstantStruct(T, V); } Constant* LLVMContext::getConstantStruct(const std::vector<Constant*>& V, @@ -658,7 +658,16 @@ void LLVMContext::erase(ConstantArray *C) { pImpl->erase(C); } +void LLVMContext::erase(ConstantStruct *S) { + pImpl->erase(S); +} + Constant *LLVMContext::replaceUsesOfWithOnConstant(ConstantArray *CA, Value *From, Value *To, Use *U) { return pImpl->replaceUsesOfWithOnConstant(CA, From, To, U); } + +Constant *LLVMContext::replaceUsesOfWithOnConstant(ConstantStruct *CS, + Value *From, Value *To, Use *U) { + return pImpl->replaceUsesOfWithOnConstant(CS, From, To, U); +} |