[llvm-commits] CVS: llvm/include/llvm/Constants.h

Reid Spencer reid at x10sys.com
Fri Oct 20 00:25:10 PDT 2006



Changes in directory llvm/include/llvm:

Constants.h updated: 1.89 -> 1.90
---
Log message:

Fix a comment to be accurate.


---
Diffs of the changes:  (+4 -4)

 Constants.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.89 llvm/include/llvm/Constants.h:1.90
--- llvm/include/llvm/Constants.h:1.89	Fri Oct 20 02:07:23 2006
+++ llvm/include/llvm/Constants.h	Fri Oct 20 02:24:55 2006
@@ -176,10 +176,10 @@
     return Val == V;
   }
 
-  /// Return a ConstantInt with the specified value for the specified type. 
-  /// Overloads for ll the integer types are provided to ensure that implicit
-  /// conversions don't bite us and to get around compiler errors where the 
-  /// compiler can't find a suitable overload for a given integer value.
+  /// Return a ConstantInt with the specified value for the specified type. The
+  /// value V will be canonicalized to a uint64_t but accessing it with either
+  /// getSExtValue() or getZExtValue() (ConstantIntegral) will yield the correct
+  /// sized/signed value for the type Ty.
   /// @brief Get a ConstantInt for a specific value.
   static ConstantInt *get(const Type *Ty, int64_t V);
 






More information about the llvm-commits mailing list