diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 23:56:45 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 23:56:45 +0000 |
commit | 7f41781c3b69040c95ecfd613d6f80a1ae06df85 (patch) | |
tree | 2b0b56866853322fd48732ff2c2cdf91238f0212 /include/llvm/LLVMContext.h | |
parent | b71725b468d8710f95d91fc0fd0637dbf2b41fcf (diff) | |
download | llvm-7f41781c3b69040c95ecfd613d6f80a1ae06df85.tar.gz llvm-7f41781c3b69040c95ecfd613d6f80a1ae06df85.tar.bz2 llvm-7f41781c3b69040c95ecfd613d6f80a1ae06df85.tar.xz |
Add a few methods that got left out earlier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r-- | include/llvm/LLVMContext.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index f018b7e428..a338b1fce2 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -53,6 +53,10 @@ public: LLVMContext(); ~LLVMContext(); + // Constant accessors + Constant* getNullValue(const Type* Ty); + Constant* getAllOnesValue(const Type* Ty); + // ConstantInt accessors ConstantInt* getConstantIntTrue(); ConstantInt* getConstantIntFalse(); @@ -180,6 +184,7 @@ public: OpaqueType* getOpaqueType(); // StructType accessors + StructType* getStructType(bool isPacked=false); StructType* getStructType(const std::vector<const Type*>& Params, bool isPacked = false); @@ -188,7 +193,7 @@ public: // PointerType accessors PointerType* getPointerType(const Type* ElementType, unsigned AddressSpace); - PointerType* getPointerTypeUnqualified(const Type* ElementType); + PointerType* getPointerTypeUnqual(const Type* ElementType); // VectorType accessors VectorType* getVectorType(const Type* ElementType, unsigned NumElements); |