Skip to content

Commit c15218b

Browse files
committed
[JITLink] Dump weak-ref status for external symbols in LinkGraphs.
Coding my way home: 8.98112N, 79.52094W
1 parent 8ef4510 commit c15218b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/ExecutionEngine/JITLink/JITLink.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ void LinkGraph::dump(raw_ostream &OS) {
338338
OS << "\nExternal symbols:\n";
339339
if (!external_symbols().empty()) {
340340
for (auto *Sym : external_symbols())
341-
OS << " " << Sym->getAddress() << ": " << *Sym << "\n";
341+
OS << " " << Sym->getAddress() << ": " << *Sym
342+
<< (Sym->isWeaklyReferenced() ? " (weakly referenced)" : "") << "\n";
342343
} else
343344
OS << " none\n";
344345
}

0 commit comments

Comments
 (0)