[llvm-commits] CVS: llvm/include/llvm/Constants.h
Reid Spencer
reid at x10sys.com
Thu Mar 1 11:30:24 PST 2007
Changes in directory llvm/include/llvm:
Constants.h updated: 1.134 -> 1.135
---
Log message:
Drop the ConstantInt(const Type&, const APInt&) constructor. It is
redundant and more verbose than the ConstantInt(const APInt&) constructor.
---
Diffs of the changes: (+4 -5)
Constants.h | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.134 llvm/include/llvm/Constants.h:1.135
--- llvm/include/llvm/Constants.h:1.134 Wed Feb 28 13:50:21 2007
+++ llvm/include/llvm/Constants.h Thu Mar 1 13:30:07 2007
@@ -90,12 +90,11 @@
}
/// 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() (ConstantInt) will yield the correct
- /// sized/signed value for the type Ty.
+ /// value V will be canonicalized to a an unsigned APInt. Accessing it with
+ /// either getSExtValue() or getZExtValue() will yield a correctly sized and
+ /// signed value for the type Ty.
/// @brief Get a ConstantInt for a specific value.
- static ConstantInt *get(const Type *Ty, int64_t V);
- static ConstantInt *get(const Type *Ty, const APInt& V);
+ static ConstantInt *get(const Type *Ty, uint64_t V);
/// Return a ConstantInt with the specified value and an implied Type. The
/// type is the integer type that corresponds to the bit width of the value.
More information about the llvm-commits
mailing list