[llvm] r264668 - Move use of scoped enum in MachineFunctionProperties after its declaration
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 14:38:36 PDT 2016
Author: dschuff
Date: Mon Mar 28 16:38:35 2016
New Revision: 264668
URL: http://llvm.org/viewvc/llvm-project?rev=264668&view=rev
Log:
Move use of scoped enum in MachineFunctionProperties after its declaration
This should fix the build with MSVC 2013
Modified:
llvm/trunk/include/llvm/CodeGen/MachineFunction.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineFunction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFunction.h?rev=264668&r1=264667&r2=264668&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFunction.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFunction.h Mon Mar 28 16:38:35 2016
@@ -100,12 +100,10 @@ class MachineFunctionProperties {
// Possible TODO: Allow requiring the negative (e.g. VRegsAllocated could be
// stated as the negative of "has vregs"
- // Stated in "positive" form; i.e. a pass could require that the property
- // hold, but not that it does not hold.
- BitVector Properties =
- BitVector(static_cast<unsigned>(Property::LastProperty));
+public:
+ // The properties are stated in "positive" form; i.e. a pass could require
+ // that the property hold, but not that it does not hold.
- public:
// Property descriptions:
// IsSSA (currently unused, intended to eventually replace
// MachineRegisterInfo::isSSA())
@@ -144,6 +142,10 @@ class MachineFunctionProperties {
bool verifyRequiredProperties(const MachineFunctionProperties &V) const {
return !V.Properties.test(Properties);
}
+
+private:
+ BitVector Properties =
+ BitVector(static_cast<unsigned>(Property::LastProperty));
};
class MachineFunction {
More information about the llvm-commits
mailing list