[llvm-commits] [llvm] r49443 - /llvm/trunk/include/llvm/Instruction.h
Dan Gohman
gohman at apple.com
Wed Apr 9 11:31:41 PDT 2008
Author: djg
Date: Wed Apr 9 13:31:41 2008
New Revision: 49443
URL: http://llvm.org/viewvc/llvm-project?rev=49443&view=rev
Log:
Add const qualifiers.
Modified:
llvm/trunk/include/llvm/Instruction.h
Modified: llvm/trunk/include/llvm/Instruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instruction.h?rev=49443&r1=49442&r2=49443&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instruction.h (original)
+++ llvm/trunk/include/llvm/Instruction.h Wed Apr 9 13:31:41 2008
@@ -127,13 +127,13 @@
/// isLogicalShift - Return true if this is a logical shift left or a logical
/// shift right.
- inline bool isLogicalShift() {
+ inline bool isLogicalShift() const {
return getOpcode() == Shl || getOpcode() == LShr;
}
/// isLogicalShift - Return true if this is a logical shift left or a logical
/// shift right.
- inline bool isArithmeticShift() {
+ inline bool isArithmeticShift() const {
return getOpcode() == AShr;
}
More information about the llvm-commits
mailing list