]> granicus.if.org Git - clang/commitdiff
[Darwin] Export new weak external symbols when compiling with coverage
authorVedant Kumar <vsk@apple.com>
Tue, 6 Nov 2018 22:25:00 +0000 (22:25 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 6 Nov 2018 22:25:00 +0000 (22:25 +0000)
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

lib/Driver/ToolChains/Darwin.cpp

index a5cc1178d33eef523449358a0abaed8b495a0c26..50c0db5b5a0b863a26f43b7fa705dfca74678882 100644 (file)
@@ -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");
   }
 }