From 7742bf4ff5180f85bc4401745e11ce6e031f32e7 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Sat, 23 Mar 2019 16:17:03 +0100 Subject: cmTarget: Move member `Backtrace` to impl --- Source/cmTarget.cxx | 5 +++-- Source/cmTarget.h | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index be03e56..d3b2e1d 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -188,6 +188,7 @@ public: std::vector LinkDirectoriesBacktraces; std::vector LinkImplementationPropertyEntries; std::vector LinkImplementationPropertyBacktraces; + cmListFileBacktrace Backtrace; }; cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, @@ -365,7 +366,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, } // Save the backtrace of target construction. - this->Backtrace = impl->Makefile->GetBacktrace(); + impl->Backtrace = impl->Makefile->GetBacktrace(); if (!this->IsImported()) { // Initialize the INCLUDE_DIRECTORIES property based on the current value @@ -508,7 +509,7 @@ std::set> const& cmTarget::GetUtilities() const cmListFileBacktrace const& cmTarget::GetBacktrace() const { - return this->Backtrace; + return impl->Backtrace; } bool cmTarget::IsExecutableWithExports() const diff --git a/Source/cmTarget.h b/Source/cmTarget.h index ca9a31d..8b51c93 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -321,8 +321,6 @@ private: friend class cmTargetInternals; friend class cmGeneratorTarget; friend class cmTargetTraceDependencies; - - cmListFileBacktrace Backtrace; }; typedef std::unordered_map cmTargets; -- cgit v0.12