[llvm-commits] CVS: llvm/include/llvm/Constants.h
Zhou Sheng
zhousheng00 at gmail.com
Thu Mar 29 22:11:16 PDT 2007
Changes in directory llvm/include/llvm:
Constants.h updated: 1.141 -> 1.142
---
Log message:
Rename and correct the method "greaterOrEqual".
---
Diffs of the changes: (+2 -2)
Constants.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.141 llvm/include/llvm/Constants.h:1.142
--- llvm/include/llvm/Constants.h:1.141 Thu Mar 29 22:22:55 2007
+++ llvm/include/llvm/Constants.h Fri Mar 30 00:10:59 2007
@@ -179,8 +179,8 @@
/// value.
/// @returns true iff this constant is greater or equal to the given number.
/// @brief Determine if the value is greater or equal to the given number.
- bool greaterOrEqual(uint64_t Num) {
- return Val.getActiveBits() > 64 || Val.getZExtValue() > Num;
+ bool uge(uint64_t Num) {
+ return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num;
}
/// @returns the 64-bit value of this constant if its active bits number is
More information about the llvm-commits
mailing list