From: Vedant Kumar Date: Tue, 6 Nov 2018 22:25:00 +0000 (+0000) Subject: [Darwin] Export new weak external symbols when compiling with coverage X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7b027cd77bf1b5f31f121ac1885fe5c862eca41;p=clang [Darwin] Export new weak external symbols when compiling with coverage Some weak external symbols were added to the profile runtime in D49953, and on Darwin, these need to be exported for tapi verification purposes. I've tightened the test so that future breakages can be caught earlier. rdar://45831054 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346276 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains/Darwin.cpp b/lib/Driver/ToolChains/Darwin.cpp index a5cc1178d3..50c0db5b5a 100644 --- a/lib/Driver/ToolChains/Darwin.cpp +++ b/lib/Driver/ToolChains/Darwin.cpp @@ -1037,6 +1037,8 @@ void Darwin::addProfileRTLibs(const ArgList &Args, addExportedSymbol(CmdArgs, "___llvm_profile_filename"); addExportedSymbol(CmdArgs, "___llvm_profile_raw_version"); addExportedSymbol(CmdArgs, "_lprofCurFilename"); + addExportedSymbol(CmdArgs, "_lprofDirMode"); + addExportedSymbol(CmdArgs, "_lprofMergeValueProfData"); } }