class ConstantArray;
class ConstantFP;
class ConstantVector;
+class UndefValue;
class IntegerType;
class PointerType;
class StructType;
Constant* getNullValue(const Type* Ty);
Constant* getAllOnesValue(const Type* Ty);
+ // UndefValue accessors
+ UndefValue* getUndef(const Type* Ty);
+
// ConstantInt accessors
ConstantInt* getConstantIntTrue();
ConstantInt* getConstantIntFalse();
return Constant::getAllOnesValue(Ty);
}
+// UndefValue accessors.
+UndefValue* LLVMContext::getUndef(const Type* Ty) {
+ return UndefValue::get(Ty);
+}
+
// ConstantInt accessors.
ConstantInt* LLVMContext::getConstantIntTrue() {
return ConstantInt::getTrue();