summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-21 19:16:08 +0000
committerChris Lattner <sabre@nondot.org>2001-07-21 19:16:08 +0000
commit7309d66d73529ab8462974b153af574c299c3fac (patch)
tree8f27bd00bbf337bdabfcf634c68030d4f51b8356 /llvm/lib
parent77ba32f4ccda3d089538b308edf07b397e6545df (diff)
downloadbcm5719-llvm-7309d66d73529ab8462974b153af574c299c3fac.tar.gz
bcm5719-llvm-7309d66d73529ab8462974b153af574c299c3fac.zip
Add new ctor for ConstPoolBool
llvm-svn: 246
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/ConstantPool.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/ConstantPool.cpp b/llvm/lib/VMCore/ConstantPool.cpp
index 53428da3909..092ca61ff1d 100644
--- a/llvm/lib/VMCore/ConstantPool.cpp
+++ b/llvm/lib/VMCore/ConstantPool.cpp
@@ -217,6 +217,11 @@ ConstPoolBool::ConstPoolBool(bool V, const string &Name = "")
: ConstPoolVal(Type::BoolTy, Name) {
Val = V;
}
+ConstPoolBool::ConstPoolBool(const Type *Ty, bool V, const string &Name = "")
+ : ConstPoolVal(Type::BoolTy, Name) {
+ Val = V;
+ assert(Ty == Type::BoolTy && "BoolTy is only valid type for bool constant");
+}
ConstPoolInt::ConstPoolInt(const Type *Ty, uint64_t V, const string &Name)
: ConstPoolVal(Ty, Name) { Val.Unsigned = V; }
OpenPOWER on IntegriCloud