summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2016-03-28 21:38:35 +0000
committerDerek Schuff <dschuff@google.com>2016-03-28 21:38:35 +0000
commitcc1ac8d1253e867832e10398dfc36c3a621a616d (patch)
treef76825140eee980d09e29557fbf2fe4f7ee197d6
parentf575b2687cdd1ad8d83c5dbf88dbca347e152648 (diff)
downloadbcm5719-llvm-cc1ac8d1253e867832e10398dfc36c3a621a616d.tar.gz
bcm5719-llvm-cc1ac8d1253e867832e10398dfc36c3a621a616d.zip
Move use of scoped enum in MachineFunctionProperties after its declaration
This should fix the build with MSVC 2013 llvm-svn: 264668
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index e55dc7b454a..b253691dabb 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/include/llvm/CodeGen/MachineFunction.h
@@ -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 {
OpenPOWER on IntegriCloud