cmMessenger: Adopt backtrace printing functions

Move backtrace printing functions from `cmListFileBacktrace` over to
`cmMessenger`, their primary caller.  Thread `cmMessenger` instances
through APIs needed to update other call sites.
This commit is contained in:
Brad King
2021-12-07 15:18:17 -05:00
parent 642238b302
commit 3d378541bb
10 changed files with 107 additions and 87 deletions

View File

@@ -191,12 +191,6 @@ public:
// This may be called only if Empty() would return false.
cmListFileContext const& Top() const;
// Print the top of the backtrace.
void PrintTitle(std::ostream& out) const;
// Print the call stack below the top of the backtrace.
void PrintCallStack(std::ostream& out) const;
// Get the number of 'frames' in this backtrace
size_t Depth() const;