summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 1f9c2e05bb0..6d1337378bb 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -1,6 +1,6 @@
/* Write the GIMPLE representation to a file stream.
- Copyright 2009 Free Software Foundation, Inc.
+ Copyright 2009, 2010 Free Software Foundation, Inc.
Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>
Re-implemented by Diego Novillo <dnovillo@google.com>
@@ -1784,8 +1784,6 @@ produce_asm (struct output_block *ob, tree fn)
if (section_type == LTO_section_function_body)
{
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fn));
- if (name[0] == '*')
- name++;
section_name = lto_get_section_name (section_type, name);
}
else
@@ -2009,16 +2007,11 @@ copy_function (struct cgraph_node *node)
const char *data;
size_t len;
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (function));
- char *section_name;
+ char *section_name =
+ lto_get_section_name (LTO_section_function_body, name);
size_t i, j;
struct lto_in_decl_state *in_state;
- struct lto_out_decl_state *out_state;
-
- if (name[0] == '*')
- name++;
- section_name =
- lto_get_section_name (LTO_section_function_body, name);
- out_state = lto_get_out_decl_state ();
+ struct lto_out_decl_state *out_state = lto_get_out_decl_state ();
lto_begin_section (section_name, !flag_wpa);
free (section_name);