[PATCH] D55151: [gcov/Darwin] Ensure external symbols are exported when using an export list

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 30 16:17:01 PST 2018


vsk created this revision.
vsk added reviewers: ributzka, steven_wu, calixte, marco-c.

Make sure that symbols needed to implement runtime support for gcov are
exported when using an export list on Darwin.

Without the clang driver exporting these symbols, the linker hides them,
resulting in tapi verification failures.

rdar://45944768


https://reviews.llvm.org/D55151

Files:
  clang/include/clang/Driver/ToolChain.h
  clang/lib/Driver/ToolChain.cpp
  clang/lib/Driver/ToolChains/Darwin.cpp
  clang/test/Driver/darwin-ld.c
  compiler-rt/test/profile/instrprof-darwin-exports.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55151.176217.patch
Type: text/x-patch
Size: 5975 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181201/fe42bc83/attachment-0001.bin>


More information about the cfe-commits mailing list