diff options
author | Brad King <brad.king@kitware.com> | 2018-10-17 14:44:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-18 12:07:46 (GMT) |
commit | a093b1a4f3c8c40c55c50ad8e701ceb599961140 (patch) | |
tree | 4cd25b87073e83558763b122d2816627e5b55e15 /Source/cmLinkItem.h | |
parent | e022e2d8734ffbc0378b75d85b32a2524302dd50 (diff) | |
download | CMake-a093b1a4f3c8c40c55c50ad8e701ceb599961140.zip CMake-a093b1a4f3c8c40c55c50ad8e701ceb599961140.tar.gz CMake-a093b1a4f3c8c40c55c50ad8e701ceb599961140.tar.bz2 |
cmLinkItem: Add backtrace
Carry a backtrace on every link item, not just link implementation
items. For now the non-impl items will still have empty backtraces at
runtime, but this will allow us to introduce values over time.
Diffstat (limited to 'Source/cmLinkItem.h')
-rw-r--r-- | Source/cmLinkItem.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmLinkItem.h b/Source/cmLinkItem.h index 74fd298..e1ddd22 100644 --- a/Source/cmLinkItem.h +++ b/Source/cmLinkItem.h @@ -24,10 +24,11 @@ class cmLinkItem public: cmLinkItem(); - explicit cmLinkItem(std::string const& s); - explicit cmLinkItem(cmGeneratorTarget const* t); + cmLinkItem(std::string const& s, cmListFileBacktrace const& bt); + cmLinkItem(cmGeneratorTarget const* t, cmListFileBacktrace const& bt); std::string const& AsStr() const; cmGeneratorTarget const* Target; + cmListFileBacktrace Backtrace; friend bool operator<(cmLinkItem const& l, cmLinkItem const& r); friend bool operator==(cmLinkItem const& l, cmLinkItem const& r); friend std::ostream& operator<<(std::ostream& os, cmLinkItem const& item); @@ -37,9 +38,7 @@ class cmLinkImplItem : public cmLinkItem { public: cmLinkImplItem(); - cmLinkImplItem(cmLinkItem item, cmListFileBacktrace const& bt, - bool fromGenex); - cmListFileBacktrace Backtrace; + cmLinkImplItem(cmLinkItem item, bool fromGenex); bool FromGenex; }; |