Add const qualifiers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-04-09 18:31:41 +00:00
parent c76230b485
commit cedbacffd6

View File

@ -127,13 +127,13 @@ public:
/// isLogicalShift - Return true if this is a logical shift left or a logical /// isLogicalShift - Return true if this is a logical shift left or a logical
/// shift right. /// shift right.
inline bool isLogicalShift() { inline bool isLogicalShift() const {
return getOpcode() == Shl || getOpcode() == LShr; return getOpcode() == Shl || getOpcode() == LShr;
} }
/// isLogicalShift - Return true if this is a logical shift left or a logical /// isLogicalShift - Return true if this is a logical shift left or a logical
/// shift right. /// shift right.
inline bool isArithmeticShift() { inline bool isArithmeticShift() const {
return getOpcode() == AShr; return getOpcode() == AShr;
} }