PPC: remove usage of cgraph_node::instrumentation_clone and cgraph_node::instrumented...
authorMartin Liska <mliska@suse.cz>
Fri, 8 Jun 2018 13:30:41 +0000 (15:30 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Jun 2018 13:30:41 +0000 (13:30 +0000)
2018-06-08  Martin Liska  <mliska@suse.cz>

* config/powerpcspe/powerpcspe.c (rs6000_xcoff_visibility):
        Remove usage of MPX-related (and removed) fields.
* config/rs6000/rs6000.c (rs6000_xcoff_visibility): Likewise.

From-SVN: r261326

gcc/ChangeLog
gcc/config/powerpcspe/powerpcspe.c
gcc/config/rs6000/rs6000.c

index 231f673bda54cd22a2cb841e33feafbaec60062f..cee2f991e9388d6940c8b54b16473ea8003d0643 100644 (file)
@@ -1,3 +1,9 @@
+2018-06-08  Martin Liska  <mliska@suse.cz>
+
+       * config/powerpcspe/powerpcspe.c (rs6000_xcoff_visibility):
+        Remove usage of MPX-related (and removed) fields.
+       * config/rs6000/rs6000.c (rs6000_xcoff_visibility): Likewise.
+
 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
 
        * cfg.c (debug): Use TDF_NONE rather than 0.
index b500cd3b6680a308e1651700540dbc31795debf9..f67505a3552194063819809056af39c56d531f98 100644 (file)
@@ -37119,13 +37119,6 @@ rs6000_xcoff_visibility (tree decl)
   };
 
   enum symbol_visibility vis = DECL_VISIBILITY (decl);
-
-  if (TREE_CODE (decl) == FUNCTION_DECL
-      && cgraph_node::get (decl)
-      && cgraph_node::get (decl)->instrumentation_clone
-      && cgraph_node::get (decl)->instrumented_version)
-    vis = DECL_VISIBILITY (cgraph_node::get (decl)->instrumented_version->decl);
-
   return visibility_types[vis];
 }
 #endif
index 04186a07cd280e3a145c76634b413b1f4de258a2..683cb6c6f2fbcd531365214a290f8e9dff3b4ba3 100644 (file)
@@ -33541,13 +33541,6 @@ rs6000_xcoff_visibility (tree decl)
   };
 
   enum symbol_visibility vis = DECL_VISIBILITY (decl);
-
-  if (TREE_CODE (decl) == FUNCTION_DECL
-      && cgraph_node::get (decl)
-      && cgraph_node::get (decl)->instrumentation_clone
-      && cgraph_node::get (decl)->instrumented_version)
-    vis = DECL_VISIBILITY (cgraph_node::get (decl)->instrumented_version->decl);
-
   return visibility_types[vis];
 }
 #endif