summaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/LLVMContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp
index e30ad3f..1987463 100644
--- a/lib/VMCore/LLVMContext.cpp
+++ b/lib/VMCore/LLVMContext.cpp
@@ -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();