mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
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:
parent
1a2cefcb40
commit
d7fa0fdbd7
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user