diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-08-26 22:09:08 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-08-26 22:09:08 +0000 |
commit | c437aa9c262137ce936ae085364ae627b22cfa9b (patch) | |
tree | 071da4e62036f74215ce1f69d1339fdb2b209c43 | |
parent | 9084adc290c24bd9e52046ef5771e7c83a6e6c34 (diff) | |
download | bcm5719-llvm-c437aa9c262137ce936ae085364ae627b22cfa9b.tar.gz bcm5719-llvm-c437aa9c262137ce936ae085364ae627b22cfa9b.zip |
[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
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 4 | ||||
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineRegisterInfo.h | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineFunctionPass.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index e6807375c35..f6af0363b3a 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -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; } diff --git a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h index a42c5513ab6..d2022424cc9 100644 --- a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h @@ -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); } diff --git a/llvm/lib/CodeGen/MachineFunctionPass.cpp b/llvm/lib/CodeGen/MachineFunctionPass.cpp index 43cd2ed64b4..2265676ff8b 100644 --- a/llvm/lib/CodeGen/MachineFunctionPass.cpp +++ b/llvm/lib/CodeGen/MachineFunctionPass.cpp @@ -62,7 +62,7 @@ bool MachineFunctionPass::runOnFunction(Function &F) { bool RV = runOnMachineFunction(MF); MFProps.set(SetProperties); - MFProps.clear(ClearedProperties); + MFProps.reset(ClearedProperties); return RV; } |