]> granicus.if.org Git - clang/commit
[Driver] Export symbols needed to use profile runtime
authorVedant Kumar <vsk@apple.com>
Wed, 11 Oct 2017 21:54:09 +0000 (21:54 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 11 Oct 2017 21:54:09 +0000 (21:54 +0000)
commitf8e070853ea3632dad727597ce2177fd62346d5c
tree24001327e0b9782ef012636a4d731057f3475fae
parent9563977e8bce81b1dd88ce7579e36a055e3ff90b
[Driver] Export symbols needed to use profile runtime

Apple's API verification tool (tapi) checks that the symbols exported
from a program match a whitelist. When the program uses the profile
runtime, some additional symbols which are typically not part of the
regular whitelist must be exported.

If we're using symbol export directives along with the profile runtime
on Darwin, the driver needs to export the additional symbols to avoid
verification failures.

rdar://problem/30067753

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315518 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Darwin.cpp
test/Driver/darwin-ld.c