From 0789816739955dd0efdd328eaa454eb218f44f1f Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 6 Nov 2018 22:25:00 +0000 Subject: [PATCH] [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 (cherry picked from commit e7b027cd77bf1b5f31f121ac1885fe5c862eca41) --- lib/Driver/ToolChains/Darwin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Driver/ToolChains/Darwin.cpp b/lib/Driver/ToolChains/Darwin.cpp index 8f8d97ff3d2..15bf0052c07 100644 --- a/lib/Driver/ToolChains/Darwin.cpp +++ b/lib/Driver/ToolChains/Darwin.cpp @@ -1029,6 +1029,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"); } }