mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Fix a FIXME. The SlotIndex::Slot enum should be private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -551,11 +551,9 @@ namespace llvm {
|
||||
return AliveStack;
|
||||
}
|
||||
} else {
|
||||
if (i.getSlot() == SlotIndex::DEF &&
|
||||
mi->definesRegister(li->reg, tri)) {
|
||||
if (i.isDef() && mi->definesRegister(li->reg, tri)) {
|
||||
return Defined;
|
||||
} else if (i.getSlot() == SlotIndex::USE &&
|
||||
mi->readsRegister(li->reg)) {
|
||||
} else if (i.isUse() && mi->readsRegister(li->reg)) {
|
||||
return Used;
|
||||
} else {
|
||||
if (vrm == 0 ||
|
||||
@ -771,7 +769,7 @@ namespace llvm {
|
||||
os << indent + s(2) << "<tr height=6ex>\n";
|
||||
|
||||
// Render the code column.
|
||||
if (i.getSlot() == SlotIndex::LOAD) {
|
||||
if (i.isLoad()) {
|
||||
MachineBasicBlock *mbb = sis->getMBBFromIndex(i);
|
||||
mi = sis->getInstructionFromIndex(i);
|
||||
|
||||
|
Reference in New Issue
Block a user