[llvm-commits] [dragonegg] r113954 - /dragonegg/trunk/llvm-backend.cpp

Duncan Sands baldrick at free.fr
Wed Sep 15 00:01:25 PDT 2010


Author: baldrick
Date: Wed Sep 15 02:01:25 2010
New Revision: 113954

URL: http://llvm.org/viewvc/llvm-project?rev=113954&view=rev
Log:
Replace LLVM_GLOBAL_VISIBILITY with __attribute__ ((visibility("default"))).
There should probably be a configure test to see if the compiler can handle
this, but since we already always compile with -fvisibility=hidden, things
should not be worse than they were before.

Modified:
    dragonegg/trunk/llvm-backend.cpp

Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=113954&r1=113953&r2=113954&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Wed Sep 15 02:01:25 2010
@@ -1549,7 +1549,7 @@
 // This plugin's code is licensed under the GPLv2 or later.  The LLVM libraries
 // use the GPL compatible University of Illinois/NCSA Open Source License.  The
 // plugin is GPL compatible.
-int plugin_is_GPL_compatible LLVM_GLOBAL_VISIBILITY;
+int plugin_is_GPL_compatible __attribute__ ((visibility("default")));
 
 
 /// llvm_start_unit - Perform late initialization.  This is called by GCC just
@@ -2424,8 +2424,9 @@
 /// plugin_init - Plugin initialization routine, called by GCC.  This is the
 /// first code executed in the plugin (except for constructors).  Configure
 /// the plugin and setup GCC, taking over optimization and code generation.
-int LLVM_GLOBAL_VISIBILITY plugin_init(struct plugin_name_args *plugin_info,
-                                       struct plugin_gcc_version *version) {
+int __attribute__ ((visibility("default")))
+plugin_init(struct plugin_name_args *plugin_info,
+            struct plugin_gcc_version *version) {
   const char *plugin_name = plugin_info->base_name;
   struct register_pass_info pass_info;
 





More information about the llvm-commits mailing list