aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/LLVMContextImpl.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-24 00:36:24 +0000
committerOwen Anderson <resistor@mac.com>2009-07-24 00:36:24 +0000
commit226b21676f7f21cd4c0e3e48e5c16308a0a41822 (patch)
tree235459cdde1f0a882a34eb024e72dce11b333e3b /lib/VMCore/LLVMContextImpl.h
parentefb657e926924b10fe0eed4c27c63155d089b6ef (diff)
downloadexternal_llvm-226b21676f7f21cd4c0e3e48e5c16308a0a41822.zip
external_llvm-226b21676f7f21cd4c0e3e48e5c16308a0a41822.tar.gz
external_llvm-226b21676f7f21cd4c0e3e48e5c16308a0a41822.tar.bz2
Privatize the ConstantVector tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.h')
-rw-r--r--lib/VMCore/LLVMContextImpl.h8
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