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 | 7d8bf247415583fedac1c5dd3727e0253c496555 (patch) | |
tree | 6e1d4a07734c199f8a3245fab69bf516ff93fce5 /include/llvm | |
parent | bf9a67a9bfb84f77cca3ab81babd8d5cce4aa154 (diff) | |
download | external_llvm-7d8bf247415583fedac1c5dd3727e0253c496555.zip external_llvm-7d8bf247415583fedac1c5dd3727e0253c496555.tar.gz external_llvm-7d8bf247415583fedac1c5dd3727e0253c496555.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Constants.h | 5 | ||||
-rw-r--r-- | include/llvm/LLVMContext.h | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index a9a18d7..12f9785 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -344,13 +344,10 @@ class ConstantStruct : public Constant { friend struct ConstantCreator<ConstantStruct, StructType, std::vector<Constant*> >; ConstantStruct(const ConstantStruct &); // DO NOT IMPLEMENT + friend class LLVMContextImpl; protected: ConstantStruct(const StructType *T, const std::vector<Constant*> &Val); public: - /// get() - Static factory methods - Return objects of the specified value - /// - static Constant *get(const StructType *T, const std::vector<Constant*> &V); - /// Transparently provide more efficient getOperand methods. DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index 0751ccd..53b0868e 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. |