aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-11 15:13:43 +0000
committerDan Gohman <gohman@apple.com>2009-08-11 15:13:43 +0000
commitf038e30eeed7579166cee58c258551633132880b (patch)
tree7dbf82f5e5ed0dff2bab0c82c58f1e2aabbfb779
parent2d0a4a66665988fbeb5034d988f29316deac6075 (diff)
downloadexternal_llvm-f038e30eeed7579166cee58c258551633132880b.zip
external_llvm-f038e30eeed7579166cee58c258551633132880b.tar.gz
external_llvm-f038e30eeed7579166cee58c258551633132880b.tar.bz2
Add const qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78663 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/DeadMachineInstructionElim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/DeadMachineInstructionElim.cpp b/lib/CodeGen/DeadMachineInstructionElim.cpp
index 4832a5e..45ce84b 100644
--- a/lib/CodeGen/DeadMachineInstructionElim.cpp
+++ b/lib/CodeGen/DeadMachineInstructionElim.cpp
@@ -36,7 +36,7 @@ namespace {
DeadMachineInstructionElim() : MachineFunctionPass(&ID) {}
private:
- bool isDead(MachineInstr *MI) const;
+ bool isDead(const MachineInstr *MI) const;
};
}
char DeadMachineInstructionElim::ID = 0;
@@ -49,7 +49,7 @@ FunctionPass *llvm::createDeadMachineInstructionElimPass() {
return new DeadMachineInstructionElim();
}
-bool DeadMachineInstructionElim::isDead(MachineInstr *MI) const {
+bool DeadMachineInstructionElim::isDead(const MachineInstr *MI) const {
// Don't delete instructions with side effects.
bool SawStore = false;
if (!MI->isSafeToMove(TII, SawStore))