diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-08-26 22:09:11 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-08-26 22:09:11 +0000 |
commit | 7e943897736573f9f4450f1e378d5480b15e81ce (patch) | |
tree | c9247ee3c62bf44271e35ea7054fd6583aebcf26 /include | |
parent | 1c4f0f9d6c9b6f748f82ad95506584d30c12cb6d (diff) |
[MFProperties] Introduce a reset method with no argument.
This method allows to reset all the properties in one go.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index f6af0363b3a..ad72e84c07d 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -136,6 +136,11 @@ public: Properties.reset(static_cast<unsigned>(P)); return *this; } + /// Reset all the properties. + MachineFunctionProperties &reset() { + Properties.reset(); + return *this; + } MachineFunctionProperties &set(const MachineFunctionProperties &MFP) { Properties |= MFP.Properties; return *this; |