mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 01:17:46 +00:00
Add accessor for getting UndefValue's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e27be3aae9
commit
480752e9f6
@ -30,6 +30,7 @@ class ConstantAggregateZero;
|
||||
class ConstantArray;
|
||||
class ConstantFP;
|
||||
class ConstantVector;
|
||||
class UndefValue;
|
||||
class IntegerType;
|
||||
class PointerType;
|
||||
class StructType;
|
||||
@ -57,6 +58,9 @@ public:
|
||||
Constant* getNullValue(const Type* Ty);
|
||||
Constant* getAllOnesValue(const Type* Ty);
|
||||
|
||||
// UndefValue accessors
|
||||
UndefValue* getUndef(const Type* Ty);
|
||||
|
||||
// ConstantInt accessors
|
||||
ConstantInt* getConstantIntTrue();
|
||||
ConstantInt* getConstantIntFalse();
|
||||
|
@ -38,6 +38,11 @@ Constant* LLVMContext::getAllOnesValue(const Type* Ty) {
|
||||
return Constant::getAllOnesValue(Ty);
|
||||
}
|
||||
|
||||
// UndefValue accessors.
|
||||
UndefValue* LLVMContext::getUndef(const Type* Ty) {
|
||||
return UndefValue::get(Ty);
|
||||
}
|
||||
|
||||
// ConstantInt accessors.
|
||||
ConstantInt* LLVMContext::getConstantIntTrue() {
|
||||
return ConstantInt::getTrue();
|
||||
|
Loading…
Reference in New Issue
Block a user