aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ConstantPool.cpp
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
commitd7fa0fdbd76503fb9fd3a507f83797734e872efd (patch)
treeca599b86e9629c24467b8fcd7811ac1f49aef068 /lib/VMCore/ConstantPool.cpp
parent1a2cefcb40eea0fc08f3b0cc960e5b1f7a77e483 (diff)
Add new ctor for ConstPoolBool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantPool.cpp')
-rw-r--r--lib/VMCore/ConstantPool.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/ConstantPool.cpp b/lib/VMCore/ConstantPool.cpp
index 53428da390..092ca61ff1 100644
--- a/lib/VMCore/ConstantPool.cpp
+++ b/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; }