diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-02 23:58:19 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-02 23:58:19 +0000 |
commit | 0d86e2fa589d1a3261fa942bea2ad0b4702e198b (patch) | |
tree | 8afe0b864c5aa6b0dcab7311fd51db54136a98e0 /lib/VMCore | |
parent | 4fbb9960adcd79888acda1869d26032b9ab44a10 (diff) | |
download | external_llvm-0d86e2fa589d1a3261fa942bea2ad0b4702e198b.zip external_llvm-0d86e2fa589d1a3261fa942bea2ad0b4702e198b.tar.gz external_llvm-0d86e2fa589d1a3261fa942bea2ad0b4702e198b.tar.bz2 |
Fill in a few more missing accessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index fd69c4c..6af6ff6 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -53,6 +53,12 @@ ConstantInt* LLVMContext::getConstantIntFalse() { return ConstantInt::getFalse(); } +Constant* LLVMContext::getConstantInt(const Type* Ty, uint64_t V, + bool isSigned) { + return ConstantInt::get(Ty, V, isSigned); +} + + ConstantInt* LLVMContext::getConstantInt(const IntegerType* Ty, uint64_t V, bool isSigned) { return ConstantInt::get(Ty, V, isSigned); @@ -71,7 +77,7 @@ Constant* LLVMContext::getConstantInt(const Type* Ty, const APInt& V) { return ConstantInt::get(Ty, V); } -ConstantInt* LLVMContext::getAllOnesConstantInt(const Type* Ty) { +ConstantInt* LLVMContext::getConstantIntAllOnesValue(const Type* Ty) { return ConstantInt::getAllOnesValue(Ty); } |