summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-02 12:50:02 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-07 07:29:31 (GMT)
commit647488570bfe7ce210bfd0675df0eb5147e36ab6 (patch)
treeeb67a369755a20ef15f425d1f920bfbd2e1f92c2 /Source/cmTarget.h
parent6f148e4a48f3f879998e67d9bb30de07f5cf5608 (diff)
downloadCMake-647488570bfe7ce210bfd0675df0eb5147e36ab6.zip
CMake-647488570bfe7ce210bfd0675df0eb5147e36ab6.tar.gz
CMake-647488570bfe7ce210bfd0675df0eb5147e36ab6.tar.bz2
cmTarget: Replace PolicyStatus members with PolicyMap.
sizeof(cmTarget) goes from 856 to 840 with GNU libstdc++ 5.1.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 0cbb575..cade7ab 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -144,7 +144,7 @@ public:
#define DECLARE_TARGET_POLICY(POLICY) \
cmPolicies::PolicyStatus GetPolicyStatus ## POLICY () const \
- { return this->PolicyStatus ## POLICY; }
+ { return this->PolicyMap.Get(cmPolicies::POLICY); }
CM_FOR_EACH_TARGET_POLICY(DECLARE_TARGET_POLICY)
@@ -828,14 +828,7 @@ private:
// The cmMakefile instance that owns this target. This should
// always be set.
cmMakefile* Makefile;
-
- // Policy status recorded when target was created.
-#define TARGET_POLICY_MEMBER(POLICY) \
- cmPolicies::PolicyStatus PolicyStatus ## POLICY;
-
- CM_FOR_EACH_TARGET_POLICY(TARGET_POLICY_MEMBER)
-
-#undef TARGET_POLICY_MEMBER
+ cmPolicies::PolicyMap PolicyMap;
// Internal representation details.
friend class cmTargetInternals;