mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Add const qualifiers.
llvm-svn: 78663
This commit is contained in:
parent
618fc2fc8e
commit
abb3e2d240
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user