From e785adea6a677d6d98fa87763e1db138b7537f12 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 2 Jul 2009 16:51:51 +0000 Subject: Add accessor for getting UndefValue's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74702 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/LLVMContext.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/VMCore') 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(); -- cgit v1.1