Add new ctor for ConstPoolBool

llvm-svn: 246
This commit is contained in:
Chris Lattner 2001-07-21 19:16:08 +00:00
parent 77ba32f4cc
commit 7309d66d73
1 changed files with 5 additions and 0 deletions

View File

@ -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; }