summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
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.cxx
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.cxx')
-rw-r--r--Source/cmListFileCache.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index ffe1a1f..ca58314 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -412,9 +412,9 @@ void cmListFileBacktrace::PrintTitle(std::ostream& out)
return;
}
+ cmOutputConverter converter(this->Snapshot);
cmListFileContext lfc = this->front();
- lfc.FilePath = this->LocalGenerator->Convert(lfc.FilePath,
- cmLocalGenerator::HOME);
+ lfc.FilePath = converter.Convert(lfc.FilePath, cmOutputConverter::HOME);
out << (lfc.Line ? " at " : " in ") << lfc;
}
@@ -425,13 +425,13 @@ void cmListFileBacktrace::PrintCallStack(std::ostream& out)
return;
}
+ cmOutputConverter converter(this->Snapshot);
const_iterator i = this->begin() + 1;
out << "Call Stack (most recent call first):\n";
while(i != this->end())
{
cmListFileContext lfc = *i;
- lfc.FilePath = this->LocalGenerator->Convert(lfc.FilePath,
- cmLocalGenerator::HOME);
+ lfc.FilePath = converter.Convert(lfc.FilePath, cmOutputConverter::HOME);
out << " " << lfc << "\n";
++i;
}