Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
[Darwin] Export new weak external symbols when compiling with coverage
Browse files Browse the repository at this point in the history
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 e7b027c)
  • Loading branch information
vedantk committed Nov 6, 2018
1 parent 4148c50 commit 0789816
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Driver/ToolChains/Darwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 0789816

Please sign in to comment.