mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Debug operands should not be def or kill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0710472c8
commit
38007ca86a
@ -246,11 +246,13 @@ public:
|
||||
|
||||
void setIsUse(bool Val = true) {
|
||||
assert(isReg() && "Wrong MachineOperand accessor");
|
||||
assert((Val || !isDebug()) && "Marking a debug operation as def");
|
||||
IsDef = !Val;
|
||||
}
|
||||
|
||||
void setIsDef(bool Val = true) {
|
||||
assert(isReg() && "Wrong MachineOperand accessor");
|
||||
assert((!Val || !isDebug()) && "Marking a debug operation as def");
|
||||
IsDef = Val;
|
||||
}
|
||||
|
||||
@ -261,6 +263,7 @@ public:
|
||||
|
||||
void setIsKill(bool Val = true) {
|
||||
assert(isReg() && !IsDef && "Wrong MachineOperand accessor");
|
||||
assert((!Val || !isDebug()) && "Marking a debug operation as kill");
|
||||
IsKill = Val;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user