diff options
author | Brad King <brad.king@kitware.com> | 2020-09-25 11:40:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-28 13:49:07 (GMT) |
commit | 68af831505450a34ddd4bf767844bc3890eb52e5 (patch) | |
tree | 30acd56959f1bc4b36e9b69451264fc67ac73cf4 /Source/cmMakefile.cxx | |
parent | 280f3918f3a731f64c94b2b7c912c58d714fc676 (diff) | |
download | CMake-68af831505450a34ddd4bf767844bc3890eb52e5.zip CMake-68af831505450a34ddd4bf767844bc3890eb52e5.tar.gz CMake-68af831505450a34ddd4bf767844bc3890eb52e5.tar.bz2 |
cmMakefile: Inline GetExecutionContext at call sites
The method only had one line, and its implementation is more clear
at the call sites than the method name.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 1c9aa52..3721056 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -283,11 +283,6 @@ cmListFileBacktrace cmMakefile::GetBacktrace(cmCommandContext const& cc) const return this->Backtrace.Push(lfc); } -cmListFileContext cmMakefile::GetExecutionContext() const -{ - return this->Backtrace.Top(); -} - void cmMakefile::PrintCommandTrace(const cmListFileFunction& lff) const { // Check if current file in the list of requested to trace... @@ -3419,7 +3414,7 @@ void cmMakefile::AddFunctionBlocker(std::unique_ptr<cmFunctionBlocker> fb) { if (!this->ExecutionStatusStack.empty()) { // Record the context in which the blocker is created. - fb->SetStartingContext(this->GetExecutionContext()); + fb->SetStartingContext(this->Backtrace.Top()); } this->FunctionBlockers.push(std::move(fb)); |