aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/cgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/cgraph.c')
-rw-r--r--gcc-4.9/gcc/cgraph.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc-4.9/gcc/cgraph.c b/gcc-4.9/gcc/cgraph.c
index 180a63656..63b7b4d60 100644
--- a/gcc-4.9/gcc/cgraph.c
+++ b/gcc-4.9/gcc/cgraph.c
@@ -677,7 +677,11 @@ cgraph_node_for_asm (tree asmname)
{
cgraph_node *cn = dyn_cast <cgraph_node> (node);
if (cn && !cn->global.inlined_to)
- return cn;
+ {
+ if (L_IPO_COMP_MODE && cgraph_pre_profiling_inlining_done)
+ return cgraph_lipo_get_resolved_node (cn->decl);
+ return cn;
+ }
}
return NULL;
}