summaryrefslogtreecommitdiff
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-09 18:31:41 +0000
committerDan Gohman <gohman@apple.com>2008-04-09 18:31:41 +0000
commitcedbacffd67939d8e8f42e5506d458ddc187e575 (patch)
tree89e97c00395d088c7125ca4181ff2b25f54732d3 /include/llvm/Instruction.h
parentc76230b48568bba5861a4646d9efbf3818bccd6b (diff)
downloadllvm-cedbacffd67939d8e8f42e5506d458ddc187e575.tar.gz
llvm-cedbacffd67939d8e8f42e5506d458ddc187e575.tar.bz2
llvm-cedbacffd67939d8e8f42e5506d458ddc187e575.tar.xz
Add const qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 51da49f09f..fe688112f1 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -127,13 +127,13 @@ public:
/// 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;
}