summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveVariables.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-30 21:56:09 +0000
committerChris Lattner <sabre@nondot.org>2007-12-30 21:56:09 +0000
commitf73823000e2d5d6e1cf65bdf5a107297e18d35fb (patch)
tree89f1433874f356861a996b65199fb5c66aed403f /include/llvm/CodeGen/LiveVariables.h
parente3087890ac7f2fcf4697f8e09091e9a384311b9c (diff)
downloadllvm-f73823000e2d5d6e1cf65bdf5a107297e18d35fb.tar.gz
llvm-f73823000e2d5d6e1cf65bdf5a107297e18d35fb.tar.bz2
llvm-f73823000e2d5d6e1cf65bdf5a107297e18d35fb.tar.xz
More cleanups for MachineOperand:
- Eliminate the static "print" method for operands, moving it into MachineOperand::print. - Change various set* methods for register flags to take a bool for the value to set it to. Remove unset* methods. - Group methods more logically by operand flavor in MachineOperand.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveVariables.h')
-rw-r--r--include/llvm/CodeGen/LiveVariables.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h
index fafbd4c0d1..b01d2969b7 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/include/llvm/CodeGen/LiveVariables.h
@@ -233,7 +233,7 @@ public:
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
MachineOperand &MO = MI->getOperand(i);
if (MO.isRegister() && MO.isKill() && MO.getReg() == reg) {
- MO.unsetIsKill();
+ MO.setIsKill(false);
Removed = true;
break;
}
@@ -278,7 +278,7 @@ public:
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
MachineOperand &MO = MI->getOperand(i);
if (MO.isRegister() && MO.isDef() && MO.getReg() == reg) {
- MO.unsetIsDead();
+ MO.setIsDead(false);
Removed = true;
break;
}