1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[MFProperties][NFC] Rename clear into reset to match BitVector naming.

The name clear is used to reset all the bit in bitvectors and using it
to reset just properties was confusing.

llvm-svn: 279873
This commit is contained in:
Quentin Colombet 2016-08-26 22:09:08 +00:00
parent 2dbd047f3a
commit e0a55b84fa
3 changed files with 5 additions and 5 deletions

View File

@ -132,7 +132,7 @@ public:
Properties.set(static_cast<unsigned>(P));
return *this;
}
MachineFunctionProperties &clear(Property P) {
MachineFunctionProperties &reset(Property P) {
Properties.reset(static_cast<unsigned>(P));
return *this;
}
@ -140,7 +140,7 @@ public:
Properties |= MFP.Properties;
return *this;
}
MachineFunctionProperties &clear(const MachineFunctionProperties &MFP) {
MachineFunctionProperties &reset(const MachineFunctionProperties &MFP) {
Properties.reset(MFP.Properties);
return *this;
}

View File

@ -166,7 +166,7 @@ public:
// leaveSSA - Indicates that the machine function is no longer in SSA form.
void leaveSSA() {
MF->getProperties().clear(MachineFunctionProperties::Property::IsSSA);
MF->getProperties().reset(MachineFunctionProperties::Property::IsSSA);
}
/// tracksLiveness - Returns true when tracking register liveness accurately.
@ -182,7 +182,7 @@ public:
/// This should be called by late passes that invalidate the liveness
/// information.
void invalidateLiveness() {
MF->getProperties().clear(
MF->getProperties().reset(
MachineFunctionProperties::Property::TracksLiveness);
}

View File

@ -62,7 +62,7 @@ bool MachineFunctionPass::runOnFunction(Function &F) {
bool RV = runOnMachineFunction(MF);
MFProps.set(SetProperties);
MFProps.clear(ClearedProperties);
MFProps.reset(ClearedProperties);
return RV;
}