[llvm-commits] [llvm] r77257 - /llvm/trunk/include/llvm/Operator.h
Dan Gohman
gohman at apple.com
Mon Jul 27 14:49:34 PDT 2009
Author: djg
Date: Mon Jul 27 16:49:34 2009
New Revision: 77257
URL: http://llvm.org/viewvc/llvm-project?rev=77257&view=rev
Log:
Order unsigned before signed, for consistency.
Modified:
llvm/trunk/include/llvm/Operator.h
Modified: llvm/trunk/include/llvm/Operator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Operator.h?rev=77257&r1=77256&r2=77257&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Operator.h (original)
+++ llvm/trunk/include/llvm/Operator.h Mon Jul 27 16:49:34 2009
@@ -66,21 +66,21 @@
///
class OverflowingBinaryOperator : public Operator {
public:
- /// hasNoSignedOverflow - Test whether this operation is known to never
- /// undergo signed overflow.
- bool hasNoSignedOverflow() const {
+ /// hasNoUnsignedOverflow - Test whether this operation is known to never
+ /// undergo unsigned overflow.
+ bool hasNoUnsignedOverflow() const {
return SubclassOptionalData & (1 << 0);
}
- void setHasNoSignedOverflow(bool B) {
+ void setHasNoUnsignedOverflow(bool B) {
SubclassOptionalData = (SubclassOptionalData & ~(1 << 0)) | (B << 0);
}
- /// hasNoUnsignedOverflow - Test whether this operation is known to never
- /// undergo unsigned overflow.
- bool hasNoUnsignedOverflow() const {
+ /// hasNoSignedOverflow - Test whether this operation is known to never
+ /// undergo signed overflow.
+ bool hasNoSignedOverflow() const {
return SubclassOptionalData & (1 << 1);
}
- void setHasNoUnsignedOverflow(bool B) {
+ void setHasNoSignedOverflow(bool B) {
SubclassOptionalData = (SubclassOptionalData & ~(1 << 1)) | (B << 1);
}
More information about the llvm-commits
mailing list