[llvm-commits] [llvm] r138579 - /llvm/trunk/include/llvm/Constants.h
David Greene
greened at obbligato.org
Thu Aug 25 13:18:22 PDT 2011
Author: greened
Date: Thu Aug 25 15:18:22 2011
New Revision: 138579
URL: http://llvm.org/viewvc/llvm-project?rev=138579&view=rev
Log:
Constify Comparison
Make ConstantInt::uge() const so it may be used in const contexts.
Modified:
llvm/trunk/include/llvm/Constants.h
Modified: llvm/trunk/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constants.h?rev=138579&r1=138578&r2=138579&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Constants.h (original)
+++ llvm/trunk/include/llvm/Constants.h Thu Aug 25 15:18:22 2011
@@ -203,7 +203,7 @@
/// 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 uge(uint64_t Num) {
+ bool uge(uint64_t Num) const {
return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num;
}
More information about the llvm-commits
mailing list