[PATCH] D59561: Make __cpu_model a hidden symbol, to match libgcc.
Sterling Augustine via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 14:05:53 PDT 2019
saugustine created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
saugustine added reviewers: asbirlea, echristo.
Make __cpu_model a hidden symbol, to match libgcc.
Repository:
rL LLVM
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
@@ -594,6 +594,9 @@
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.191392.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190319/b37e642d/attachment.bin>
More information about the llvm-commits
mailing list