Changes in directory llvm/include/llvm:
Constants.h updated: 1.144 -> 1.145 --- Log message: getLimitedValue now just forward to APInt's getLimitedValue. Mark it const. --- Diffs of the changes: (+2 -3) Constants.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm/include/llvm/Constants.h diff -u llvm/include/llvm/Constants.h:1.144 llvm/include/llvm/Constants.h:1.145 --- llvm/include/llvm/Constants.h:1.144 Mon Apr 2 20:41:34 2007 +++ llvm/include/llvm/Constants.h Tue Apr 10 01:44:12 2007 @@ -189,9 +189,8 @@ /// @returns the 64-bit value of this constant if its active bits number is /// not greater than 64, otherwise, just return the given uint64_t number. /// @brief Get the constant's value if possible. - uint64_t getLimitedValue(uint64_t Limit) { - return (Val.getActiveBits() > 64 || Val.getZExtValue() > Limit) ? - Limit : Val.getZExtValue(); + uint64_t getLimitedValue(uint64_t Limit = ~0ULL) const { + return Val.getLimitedValue(Limit); } /// @returns the value for an integer constant of the given type that has all _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits