Add accessor for getting UndefValue's.
[oota-llvm.git] / lib / VMCore / LLVMContext.cpp
index e30ad3f900461fdb1b7bcd63ecde3f70e333b218..1987463af301f7f3ebfcaf6a9c6282b66882bb6b 100644 (file)
@@ -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();