aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 16:51:51 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 16:51:51 +0000
commite785adea6a677d6d98fa87763e1db138b7537f12 (patch)
treebdf7327322d240d5001aed1af037f3a4b501523f /include
parentbe3fe4e48d9a358c3f232fe509a5bf2ad3485765 (diff)
downloadexternal_llvm-e785adea6a677d6d98fa87763e1db138b7537f12.zip
external_llvm-e785adea6a677d6d98fa87763e1db138b7537f12.tar.gz
external_llvm-e785adea6a677d6d98fa87763e1db138b7537f12.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 'include')
-rw-r--r--include/llvm/LLVMContext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index a338b1f..8779952 100644
--- a/include/llvm/LLVMContext.h
+++ b/include/llvm/LLVMContext.h
@@ -30,6 +30,7 @@ class ConstantAggregateZero;
class ConstantArray;
class ConstantFP;
class ConstantVector;
+class UndefValue;
class IntegerType;
class PointerType;
class StructType;
@@ -57,6 +58,9 @@ public:
Constant* getNullValue(const Type* Ty);
Constant* getAllOnesValue(const Type* Ty);
+ // UndefValue accessors
+ UndefValue* getUndef(const Type* Ty);
+
// ConstantInt accessors
ConstantInt* getConstantIntTrue();
ConstantInt* getConstantIntFalse();