1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +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
// 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 {