[PATCH] D70350: [DWARF] Allow cross-CU references of subprogram definitions
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 16:35:20 PST 2019
aprantl added inline comments.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:191
bool DwarfUnit::isShareableAcrossCUs(const DINode *D) const {
// When the MDNode can be part of the type system, the DIE can be shared
// across CUs.
----------------
Technically DISubprogram that are function definitions aren't part of the type system (as opposed to function declarations). Maybe just the comment needs to be reworded, but I wonder if this could have some unintended consequences when `llvm-link`ing two llvm::Modules that both define different functions with the same name.
What decision is `isShareableAcrossCUs()` used for?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70350/new/
https://reviews.llvm.org/D70350
More information about the llvm-commits
mailing list