1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Move use of scoped enum in MachineFunctionProperties after its declaration

This should fix the build with MSVC 2013

llvm-svn: 264668
This commit is contained in:
Derek Schuff 2016-03-28 21:38:35 +00:00
parent 730f156c56
commit 68842ff3b9

View File

@ -100,12 +100,10 @@ class MachineFunctionProperties {
// Possible TODO: Allow requiring the negative (e.g. VRegsAllocated could be // Possible TODO: Allow requiring the negative (e.g. VRegsAllocated could be
// stated as the negative of "has vregs" // stated as the negative of "has vregs"
// Stated in "positive" form; i.e. a pass could require that the property public:
// hold, but not that it does not hold. // The properties are stated in "positive" form; i.e. a pass could require
BitVector Properties = // that the property hold, but not that it does not hold.
BitVector(static_cast<unsigned>(Property::LastProperty));
public:
// Property descriptions: // Property descriptions:
// IsSSA (currently unused, intended to eventually replace // IsSSA (currently unused, intended to eventually replace
// MachineRegisterInfo::isSSA()) // MachineRegisterInfo::isSSA())
@ -144,6 +142,10 @@ class MachineFunctionProperties {
bool verifyRequiredProperties(const MachineFunctionProperties &V) const { bool verifyRequiredProperties(const MachineFunctionProperties &V) const {
return !V.Properties.test(Properties); return !V.Properties.test(Properties);
} }
private:
BitVector Properties =
BitVector(static_cast<unsigned>(Property::LastProperty));
}; };
class MachineFunction { class MachineFunction {