This avoids unnecessary cases in switch statements covering all
properties.
llvm-svn: 279337
Legalized,
RegBankSelected,
Selected,
- LastProperty,
+ LastProperty = Selected,
};
bool hasProperty(Property P) const {
private:
BitVector Properties =
- BitVector(static_cast<unsigned>(Property::LastProperty));
+ BitVector(static_cast<unsigned>(Property::LastProperty)+1);
};
class MachineFunction {
case Property::Selected:
ROS << (HasProperty ? "" : "not ") << "selected";
break;
- default:
- break;
}
}
#endif