llvm.org GIT mirror llvm / e52c44e
MachineFunction: Make LastProperty an alias of the last property This avoids unnecessary cases in switch statements covering all properties. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279337 91177308-0d34-0410-b5e6-96231b3b80d8 Matthias Braun 4 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
126126 Legalized,
127127 RegBankSelected,
128128 Selected,
129 LastProperty,
129 LastProperty = Selected,
130130 };
131131
132132 bool hasProperty(Property P) const {
160160
161161 private:
162162 BitVector Properties =
163 BitVector(static_cast(Property::LastProperty));
163 BitVector(static_cast(Property::LastProperty)+1);
164164 };
165165
166166 class MachineFunction {
8484 case Property::Selected:
8585 ROS << (HasProperty ? "" : "not ") << "selected";
8686 break;
87 default:
88 break;
8987 }
9088 }
9189 #endif