aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Instruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-27 08:39:18 +0000
committerChris Lattner <sabre@nondot.org>2008-11-27 08:39:18 +0000
commite3a0884ddf9009f040d80f5fde3b6d5d70b0fa13 (patch)
tree729aacd2222e8d9def5be32777ef843e309217c3 /lib/VMCore/Instruction.cpp
parentee6e10bc8e389ed1a09c33c8cec15b3aa13e813b (diff)
downloadexternal_llvm-e3a0884ddf9009f040d80f5fde3b6d5d70b0fa13.zip
external_llvm-e3a0884ddf9009f040d80f5fde3b6d5d70b0fa13.tar.gz
external_llvm-e3a0884ddf9009f040d80f5fde3b6d5d70b0fa13.tar.bz2
improve const correctness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instruction.cpp')
-rw-r--r--lib/VMCore/Instruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp
index e9653ce..6635e70 100644
--- a/lib/VMCore/Instruction.cpp
+++ b/lib/VMCore/Instruction.cpp
@@ -158,7 +158,7 @@ const char *Instruction::getOpcodeName(unsigned OpCode) {
/// isIdenticalTo - Return true if the specified instruction is exactly
/// identical to the current one. This means that all operands match and any
/// extra information (e.g. load is volatile) agree.
-bool Instruction::isIdenticalTo(Instruction *I) const {
+bool Instruction::isIdenticalTo(const Instruction *I) const {
if (getOpcode() != I->getOpcode() ||
getNumOperands() != I->getNumOperands() ||
getType() != I->getType())
@@ -209,7 +209,7 @@ bool Instruction::isIdenticalTo(Instruction *I) const {
}
// isSameOperationAs
-bool Instruction::isSameOperationAs(Instruction *I) const {
+bool Instruction::isSameOperationAs(const Instruction *I) const {
if (getOpcode() != I->getOpcode() || getType() != I->getType() ||
getNumOperands() != I->getNumOperands())
return false;