[PATCH] D79835: [Fuchsia] Rely on linker switch rather than dead code ref for profile runtime
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 31 17:17:38 PDT 2020
MaskRay added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Fuchsia.cpp:372
+ llvm::opt::ArgStringList &CmdArgs) const {
+ // Add linker option -u__llvm_profile_runtime to cause runtime
+ // initialization module to be linked in.
----------------
Thanks. I just realized `Linux::addProfileRTLibs` can be simplified.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79835/new/
https://reviews.llvm.org/D79835
More information about the cfe-commits
mailing list