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.cxx | |
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.cxx')
-rw-r--r-- | Source/cmLinkItem.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmLinkItem.cxx b/Source/cmLinkItem.cxx index 69b6821..121731d 100644 --- a/Source/cmLinkItem.cxx +++ b/Source/cmLinkItem.cxx @@ -12,15 +12,18 @@ cmLinkItem::cmLinkItem() { } -cmLinkItem::cmLinkItem(std::string const& n) +cmLinkItem::cmLinkItem(std::string const& n, cmListFileBacktrace const& bt) : String(n) , Target(nullptr) + , Backtrace(bt) { } -cmLinkItem::cmLinkItem(cmGeneratorTarget const* t) +cmLinkItem::cmLinkItem(cmGeneratorTarget const* t, + cmListFileBacktrace const& bt) : String() , Target(t) + , Backtrace(bt) { } @@ -58,15 +61,12 @@ std::ostream& operator<<(std::ostream& os, cmLinkItem const& item) cmLinkImplItem::cmLinkImplItem() : cmLinkItem() - , Backtrace() , FromGenex(false) { } -cmLinkImplItem::cmLinkImplItem(cmLinkItem item, cmListFileBacktrace const& bt, - bool fromGenex) +cmLinkImplItem::cmLinkImplItem(cmLinkItem item, bool fromGenex) : cmLinkItem(std::move(item)) - , Backtrace(bt) , FromGenex(fromGenex) { } |