diff options
author | Vedant Kumar <vsk@apple.com> | 2018-04-13 23:43:59 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-04-13 23:43:59 +0000 |
commit | 4dda4b9393d46ba6fb111b6e45d48bd43cc5e31c (patch) | |
tree | aa1751e2aa29623c3169f7f090a9610377e8cba8 /clang/lib/Driver/ToolChains/Darwin.cpp | |
parent | 1ba8c8a2cc9f797842de2eed791bab01481480bd (diff) | |
download | bcm5719-llvm-4dda4b9393d46ba6fb111b6e45d48bd43cc5e31c.tar.gz bcm5719-llvm-4dda4b9393d46ba6fb111b6e45d48bd43cc5e31c.zip |
[Driver] Export profiling symbols for -exported_symbols_list
When profiling is enabled and -exported_symbols_list is specified for
the Darwin linker, export the requisite set of profiling symbols.
rdar://39427167
llvm-svn: 330077
Diffstat (limited to 'clang/lib/Driver/ToolChains/Darwin.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChains/Darwin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp index 70db1dda205..2c1234c83ab 100644 --- a/clang/lib/Driver/ToolChains/Darwin.cpp +++ b/clang/lib/Driver/ToolChains/Darwin.cpp @@ -988,6 +988,8 @@ StringRef Darwin::getOSLibraryNameSuffix() const { /// Check if the link command contains a symbol export directive. static bool hasExportSymbolDirective(const ArgList &Args) { for (Arg *A : Args) { + if (A->getOption().matches(options::OPT_exported__symbols__list)) + return true; if (!A->getOption().matches(options::OPT_Wl_COMMA) && !A->getOption().matches(options::OPT_Xlinker)) continue; |