microinstruction: Make use_count private (#53)

Makes the operation a part of the direct interface.
This commit is contained in:
Mat M
2016-11-30 16:51:06 -05:00
committed by Merry
parent 3621a925b2
commit de1f831d79
6 changed files with 31 additions and 32 deletions

View File

@@ -217,7 +217,11 @@ bool Inst::MayHaveSideEffects() const {
WritesToFPSCR() ||
AltersExclusiveState() ||
IsMemoryWrite();
}
void Inst::DecrementRemainingUses() {
ASSERT_MSG(HasUses(), "Microinstruction doesn't have any remaining uses");
use_count--;
}
Inst* Inst::GetAssociatedPseudoOperation(Opcode opcode) {