summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-11-06 22:25:00 +0000
committerVedant Kumar <vsk@apple.com>2018-11-06 22:25:00 +0000
commit9e41b5eb6e4a8c1aa07a8f73f17936571790b741 (patch)
tree45e6297fe23c423b6417ad9cec94526d05865494 /clang/lib/Driver
parent935d373db93195eaa1f00ceaf3907692c1f5432c (diff)
downloadbcm5719-llvm-9e41b5eb6e4a8c1aa07a8f73f17936571790b741.tar.gz
bcm5719-llvm-9e41b5eb6e4a8c1aa07a8f73f17936571790b741.zip
[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 llvm-svn: 346276
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/ToolChains/Darwin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp
index a5cc1178d33..50c0db5b5a0 100644
--- a/clang/lib/Driver/ToolChains/Darwin.cpp
+++ b/clang/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");
}
}
OpenPOWER on IntegriCloud