[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 10:37:37 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL356581: Make __cpu_model a hidden symbol, to match libgcc. (authored by saugustine, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D59561?vs=191523&id=191531#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59561/new/

https://reviews.llvm.org/D59561

Files:
  compiler-rt/trunk/lib/builtins/cpu_model.c


Index: compiler-rt/trunk/lib/builtins/cpu_model.c
===================================================================
--- compiler-rt/trunk/lib/builtins/cpu_model.c
+++ compiler-rt/trunk/lib/builtins/cpu_model.c
@@ -592,14 +592,24 @@
 #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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59561.191531.patch
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190320/d0982ebe/attachment.bin>


More information about the llvm-commits mailing list