diff options
author | Sterling Augustine <saugustine@google.com> | 2019-03-20 17:37:23 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-03-20 23:41:22 +0000 |
commit | ef446759ae4b73d784298aab834c4c6509ee5567 (patch) | |
tree | c3d3d5372fe1ff22188d93a4973a79396d8a2eed | |
parent | 1392cecfca93c285a9e50a23eec26812e28f4d95 (diff) | |
download | compiler-rt-ef446759ae4b73d784298aab834c4c6509ee5567.tar.gz |
Make __cpu_model a hidden symbol, to match libgcc.
Also hide __cpu_inicator_init and __cpu_features2
for similar reasons.
Summary: Make __cpu_model a hidden symbol, to match libgcc.
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59561
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@356581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/builtins/cpu_model.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/builtins/cpu_model.c b/lib/builtins/cpu_model.c index b6be55a66..6213b7189 100644 --- a/lib/builtins/cpu_model.c +++ b/lib/builtins/cpu_model.c @@ -579,14 +579,24 @@ static void getAvailableFeatures(unsigned ECX, unsigned EDX, unsigned MaxLeaf, #define CONSTRUCTOR_ATTRIBUTE #endif +#ifndef _WIN32 +__attribute__((visibility("hidden"))) +#endif int __cpu_indicator_init(void) CONSTRUCTOR_ATTRIBUTE; +#ifndef _WIN32 +__attribute__((visibility("hidden"))) +#endif struct __processor_model { unsigned int __cpu_vendor; unsigned int __cpu_type; unsigned int __cpu_subtype; unsigned int __cpu_features[1]; } __cpu_model = {0, 0, 0, {0}}; + +#ifndef _WIN32 +__attribute__((visibility("hidden"))) +#endif unsigned int __cpu_features2; /* A constructor function that is sets __cpu_model and __cpu_features2 with |