mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
cmListFileCache: Make cmListFileFunction a shared pointer
Passing cmListFileFunction everywhere by-value involves big overhead. Now cmListFileFunction stores std::shared_ptr to the underlying data.
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
bool cmFunctionBlocker::IsFunctionBlocked(const cmListFileFunction& lff,
|
||||
cmExecutionStatus& status)
|
||||
{
|
||||
if (lff.Name.Lower == this->StartCommandName()) {
|
||||
if (lff.LowerCaseName() == this->StartCommandName()) {
|
||||
this->ScopeDepth++;
|
||||
} else if (lff.Name.Lower == this->EndCommandName()) {
|
||||
} else if (lff.LowerCaseName() == this->EndCommandName()) {
|
||||
this->ScopeDepth--;
|
||||
if (this->ScopeDepth == 0U) {
|
||||
cmMakefile& mf = status.GetMakefile();
|
||||
|
||||
Reference in New Issue
Block a user