Add new ctor for ConstPoolBool

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-07-21 19:16:08 +00:00
parent 1a2cefcb40
commit d7fa0fdbd7

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