[llvm-commits] [llvm] r74739 - in /llvm/trunk: include/llvm/LLVMContext.h lib/VMCore/LLVMContext.cpp

Owen Anderson resistor at mac.com
Thu Jul 2 16:58:19 PDT 2009


Author: resistor
Date: Thu Jul  2 18:58:19 2009
New Revision: 74739

URL: http://llvm.org/viewvc/llvm-project?rev=74739&view=rev
Log:
Fill in a few more missing accessors.

Modified:
    llvm/trunk/include/llvm/LLVMContext.h
    llvm/trunk/lib/VMCore/LLVMContext.cpp

Modified: llvm/trunk/include/llvm/LLVMContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LLVMContext.h?rev=74739&r1=74738&r2=74739&view=diff

==============================================================================
--- llvm/trunk/include/llvm/LLVMContext.h (original)
+++ llvm/trunk/include/llvm/LLVMContext.h Thu Jul  2 18:58:19 2009
@@ -66,12 +66,14 @@
   // 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);

Modified: llvm/trunk/lib/VMCore/LLVMContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/LLVMContext.cpp?rev=74739&r1=74738&r2=74739&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/LLVMContext.cpp (original)
+++ llvm/trunk/lib/VMCore/LLVMContext.cpp Thu Jul  2 18:58:19 2009
@@ -53,6 +53,12 @@
   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 @@
   return ConstantInt::get(Ty, V);
 }
 
-ConstantInt* LLVMContext::getAllOnesConstantInt(const Type* Ty) {
+ConstantInt* LLVMContext::getConstantIntAllOnesValue(const Type* Ty) {
   return ConstantInt::getAllOnesValue(Ty);
 }
 





More information about the llvm-commits mailing list