Fill in a few more missing accessors.
authorOwen Anderson <resistor@mac.com>
Thu, 2 Jul 2009 23:58:19 +0000 (23:58 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 2 Jul 2009 23:58:19 +0000 (23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74739 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/LLVMContext.h
lib/VMCore/LLVMContext.cpp

index 128175c566451c9a024dba91e0bc75d7bcee7343..76b0ac8177c7eacd1452e25d61376c50fe199cad 100644 (file)
@@ -66,12 +66,14 @@ public:
   // ConstantInt accessors
   ConstantInt* getConstantIntTrue();
   ConstantInt* getConstantIntFalse();
+  Constant* getConstantInt(const Type* Ty, uint64_t V,
+                              bool isSigned = false);
   ConstantInt* getConstantInt(const IntegerType* Ty, uint64_t V,
                               bool isSigned = false);
   ConstantInt* getConstantIntSigned(const IntegerType* Ty, int64_t V);
   ConstantInt* getConstantInt(const APInt& V);
   Constant* getConstantInt(const Type* Ty, const APInt& V);
-  ConstantInt* getAllOnesConstantInt(const Type* Ty);
+  ConstantInt* getConstantIntAllOnesValue(const Type* Ty);
   
   // ConstantPointerNull accessors
   ConstantPointerNull* getConstantPointerNull(const PointerType* T);
index fd69c4c93f83c7bf3b6e8aa177874eb6cb8edfee..6af6ff65ebd17be58c06b35b8f6e527a5fa22434 100644 (file)
@@ -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);
 }