diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-11 16:50:17 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-11 16:50:17 +0000 |
commit | dfa28b157dd066eed4db9d2256f55c23b88df637 (patch) | |
tree | 680ae1f0df84cb7a495c8ca8ece4b59b2e47af60 /lib/CodeGen/RenderMachineFunction.cpp | |
parent | 3cc5d13f58e92afd7e55c33ce86e993878a2b5e9 (diff) | |
download | external_llvm-dfa28b157dd066eed4db9d2256f55c23b88df637.zip external_llvm-dfa28b157dd066eed4db9d2256f55c23b88df637.tar.gz external_llvm-dfa28b157dd066eed4db9d2256f55c23b88df637.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/RenderMachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/RenderMachineFunction.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/RenderMachineFunction.cpp b/lib/CodeGen/RenderMachineFunction.cpp index 585bf04..184b06e 100644 --- a/lib/CodeGen/RenderMachineFunction.cpp +++ b/lib/CodeGen/RenderMachineFunction.cpp @@ -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); |