We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--why-extract
1 parent f5e58a0 commit 084def0Copy full SHA for 084def0
lld/ELF/Driver.cpp
@@ -2081,8 +2081,11 @@ static void handleUndefinedGlob(StringRef arg) {
2081
2082
static void handleLibcall(StringRef name) {
2083
Symbol *sym = symtab.find(name);
2084
- if (sym && sym->isLazy() && isa<BitcodeFile>(sym->file))
+ if (sym && sym->isLazy() && isa<BitcodeFile>(sym->file)) {
2085
+ if (!config->whyExtract.empty())
2086
+ ctx.whyExtractRecords.emplace_back("<libcall>", sym->file, *sym);
2087
sym->extract();
2088
+ }
2089
}
2090
2091
static void writeArchiveStats() {
0 commit comments