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 | 909f6001e9b6f8a05164e890ac3a9f856d0a69ab (patch) | |
tree | 4fb092f2ad72b15686affb26d806189b5c80ce0c /llvm/lib/VMCore/LLVMContext.cpp | |
parent | 773582dbb845d6634171ed69e4fd8eccde9d6fa3 (diff) | |
download | bcm5719-llvm-909f6001e9b6f8a05164e890ac3a9f856d0a69ab.tar.gz bcm5719-llvm-909f6001e9b6f8a05164e890ac3a9f856d0a69ab.zip |
Privatize the ConstantStruct table.
llvm-svn: 76912
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 d0abb2df626..5a4cf2027da 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/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); +} |