[7/10] debug-early merge: LTO
diff mbox

Message ID 554C055B.2040801@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez May 8, 2015, 12:37 a.m. UTC

Comments

Richard Biener May 8, 2015, 11:55 a.m. UTC | #1
On Fri, May 8, 2015 at 2:37 AM, Aldy Hernandez <aldyh@redhat.com> wrote:
>

Ok.

Thanks,
Richard.

Patch
diff mbox

gcc/lto/

	* lto-lang.c (lto_write_globals): Remove.
	(LANG_HOOKS_WRITE_GLOBALS): Same.

diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c
index 073bf17..094ed1f 100644
--- a/gcc/lto/lto-lang.c
+++ b/gcc/lto/lto-lang.c
@@ -1116,19 +1116,6 @@  lto_getdecls (void)
   return NULL_TREE;
 }
 
-static void
-lto_write_globals (void)
-{
-  if (flag_wpa)
-    return;
-
-  /* Output debug info for global variables.  */  
-  varpool_node *vnode;
-  FOR_EACH_DEFINED_VARIABLE (vnode)
-    if (!decl_function_context (vnode->decl))
-      debug_hooks->global_decl (vnode->decl);
-}
-
 static tree
 lto_builtin_function (tree decl)
 {
@@ -1334,8 +1321,6 @@  static void lto_init_ts (void)
 #define LANG_HOOKS_PUSHDECL lto_pushdecl
 #undef LANG_HOOKS_GETDECLS
 #define LANG_HOOKS_GETDECLS lto_getdecls
-#undef LANG_HOOKS_WRITE_GLOBALS
-#define LANG_HOOKS_WRITE_GLOBALS lto_write_globals
 #undef LANG_HOOKS_REGISTER_BUILTIN_TYPE
 #define LANG_HOOKS_REGISTER_BUILTIN_TYPE lto_register_builtin_type
 #undef LANG_HOOKS_BUILTIN_FUNCTION