summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h4
-rw-r--r--llvm/include/llvm/CodeGen/MachineRegisterInfo.h4
-rw-r--r--llvm/lib/CodeGen/MachineFunctionPass.cpp2
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;
}
OpenPOWER on IntegriCloud