summaryrefslogtreecommitdiff
path: root/include/llvm/LLVMContext.h
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 /include/llvm/LLVMContext.h
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 'include/llvm/LLVMContext.h')
-rw-r--r--include/llvm/LLVMContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index 0751ccd83a..53b0868ec2 100644
--- a/include/llvm/LLVMContext.h
+++ b/include/llvm/LLVMContext.h
@@ -275,10 +275,13 @@ public:
void erase(MDNode *M);
void erase(ConstantAggregateZero *Z);
void erase(ConstantArray *Z);
+ void erase(ConstantStruct *S);
// RAUW helpers
Constant *replaceUsesOfWithOnConstant(ConstantArray *CA,
Value *From, Value *To, Use *U);
+ Constant *replaceUsesOfWithOnConstant(ConstantStruct *CS, Value *From,
+ Value *To, Use *U);
};
/// FOR BACKWARDS COMPATIBILITY - Returns a global context.