Follow the model used on Linux, where the clang driver passes the
linker a -u switch to force the profile runtime to be linked in,
rather than having every TU emit a dead function with a reference.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | ||
---|---|---|
1037 | Nit: s/for linux/for Linux or Fuchsia/ |
clang/lib/Driver/ToolChains/Fuchsia.cpp | ||
---|---|---|
372 | Thanks. I just realized Linux::addProfileRTLibs can be simplified. |
Thanks. I just realized Linux::addProfileRTLibs can be simplified.