[PATCH] D58255: [lld-link] preserve @llvm.used symbols in LTO
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 14 18:09:12 PST 2019
ruiu added inline comments.
================
Comment at: lld/COFF/InputFiles.cpp:691-692
Symbols.push_back(Sym);
+ if (ObjSym.isUsed())
+ Config->GCRoot.push_back(Sym);
}
----------------
It feels like it is cleaner to do this in MarkLive.cpp. When we execute markLive(), we have a list of Chunks, and we can iterate over the Chunks to add symbols to Worklist.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58255/new/
https://reviews.llvm.org/D58255
More information about the llvm-commits
mailing list