summaryrefslogtreecommitdiff
path: root/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-23 23:25:33 +0000
committerOwen Anderson <resistor@mac.com>2009-07-23 23:25:33 +0000
commit006c77df8cc7f6a9dac575600b797b8ba32b29eb (patch)
tree6e1d4a07734c199f8a3245fab69bf516ff93fce5 /lib/VMCore/LLVMContext.cpp
parented0e2adc7076365596ee3d26d5ba5240ce13f23d (diff)
downloadllvm-006c77df8cc7f6a9dac575600b797b8ba32b29eb.tar.gz
llvm-006c77df8cc7f6a9dac575600b797b8ba32b29eb.tar.bz2
llvm-006c77df8cc7f6a9dac575600b797b8ba32b29eb.tar.xz
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.cpp11
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);
+}