diff options
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.h')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index f313ed6..7351624 100644 --- a/lib/VMCore/LLVMContextImpl.h +++ b/lib/VMCore/LLVMContextImpl.h @@ -122,6 +122,10 @@ class LLVMContextImpl { ConstantStruct, true /*largekey*/> StructConstantsTy; StructConstantsTy *StructConstants; + typedef ValueMap<std::vector<Constant*>, VectorType, + ConstantVector> VectorConstantsTy; + VectorConstantsTy *VectorConstants; + LLVMContext &Context; ConstantInt *TheTrueVal; ConstantInt *TheFalseVal; @@ -150,6 +154,9 @@ public: Constant *getConstantStruct(const StructType *Ty, const std::vector<Constant*> &V); + Constant *getConstantVector(const VectorType *Ty, + const std::vector<Constant*> &V); + ConstantInt *getTrue() { if (TheTrueVal) return TheTrueVal; @@ -169,6 +176,7 @@ public: void erase(ConstantAggregateZero *Z); void erase(ConstantArray *C); void erase(ConstantStruct *S); + void erase(ConstantVector *V); // RAUW helpers |