OSDN Git Service

[clang/Darwin] Remove __llvm_profile_counter_bias from export list for profiling
authorVedant Kumar <vsk@apple.com>
Wed, 22 Jan 2020 00:51:27 +0000 (16:51 -0800)
committerVedant Kumar <vsk@apple.com>
Wed, 22 Jan 2020 00:52:01 +0000 (16:52 -0800)
commita156da5fb361fd38ba379ec20856626c9e35f829
tree0ebca37937448ea68d30d48d59d24ca95b84ca9c
parent67a87753225e7f5ad5b1fd151d6d2dde3d09ff09
[clang/Darwin] Remove __llvm_profile_counter_bias from export list for profiling

Do not export __llvm_profile_counter_bias when profiling is enabled
because this symbol is hidden and cannot be exported.

Should fix this bot error:

```
URL: http://green.lab.llvm.org/green/job/clang-stage1-RA/5678/consoleFull

Problem: Command Output (stdout):
--
ld: warning: cannot export hidden symbol ___llvm_profile_counter_bias
from
/Users/buildslave/jenkins/workspace/clang-stage1-RA/clang-build/lib/clang/11.0.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingBiasVar.c.o)
ld: warning: cannot export hidden symbol ___llvm_profile_counter_bias
from
/Users/buildslave/jenkins/workspace/clang-stage1-RA/clang-build/lib/clang/11.0.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingBiasVar.c.o)
```
clang/lib/Driver/ToolChains/Darwin.cpp