[PATCH] D59561: Make __cpu_model a hidden symbol, to match libgcc.
Sterling Augustine via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 09:53:00 PDT 2019
saugustine updated this revision to Diff 191518.
saugustine added a comment.
- Also hide __cpu_inicator_init for similar reasons.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59561/new/
https://reviews.llvm.org/D59561
Files:
compiler-rt/lib/builtins/cpu_model.c
Index: compiler-rt/lib/builtins/cpu_model.c
===================================================================
--- compiler-rt/lib/builtins/cpu_model.c
+++ compiler-rt/lib/builtins/cpu_model.c
@@ -592,8 +592,14 @@
#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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59561.191518.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190320/7f18ac94/attachment.bin>
More information about the llvm-commits
mailing list