diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-02 16:51:51 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-02 16:51:51 +0000 |
commit | 480752e9f6e96d8a31f1805add1cedda2e210c4c (patch) | |
tree | bdf7327322d240d5001aed1af037f3a4b501523f /lib/VMCore | |
parent | e27be3aae9afbab1d06383f0cc50c9419f5f9462 (diff) | |
download | external_llvm-480752e9f6e96d8a31f1805add1cedda2e210c4c.zip external_llvm-480752e9f6e96d8a31f1805add1cedda2e210c4c.tar.gz external_llvm-480752e9f6e96d8a31f1805add1cedda2e210c4c.tar.bz2 |
Add accessor for getting UndefValue's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 5 |
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(); |