summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-04 18:00:14 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-06 07:15:57 (GMT)
commit242dcc2c22535c00348de18bba41605428ccdb73 (patch)
tree6ec83f61539772b1bb53b1bf2ebe9925151c3afc /Source/cmListFileCache.h
parent1cff330b0fcd635f47047bd1a2d94f344e88c0f9 (diff)
downloadCMake-242dcc2c22535c00348de18bba41605428ccdb73.zip
CMake-242dcc2c22535c00348de18bba41605428ccdb73.tar.gz
CMake-242dcc2c22535c00348de18bba41605428ccdb73.tar.bz2
cmListFileBacktrace: Replace local generator with cmState::Snapshot.
Construct cmOutputConverter only when needed.
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r--Source/cmListFileCache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index 1971862a..4002d94 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -14,7 +14,7 @@
#include "cmStandardIncludes.h"
-class cmLocalGenerator;
+#include "cmState.h"
/** \class cmListFileCache
* \brief A class to cache list file contents.
@@ -74,8 +74,8 @@ struct cmListFileFunction: public cmListFileContext
class cmListFileBacktrace: private std::vector<cmListFileContext>
{
public:
- cmListFileBacktrace(cmLocalGenerator* localGen = 0)
- : LocalGenerator(localGen)
+ cmListFileBacktrace(cmState::Snapshot snapshot = cmState::Snapshot())
+ : Snapshot(snapshot)
{
}
@@ -84,7 +84,7 @@ class cmListFileBacktrace: private std::vector<cmListFileContext>
void PrintTitle(std::ostream& out);
void PrintCallStack(std::ostream& out);
private:
- cmLocalGenerator* LocalGenerator;
+ cmState::Snapshot Snapshot;
};
struct cmListFile