aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 94a8f25..e5aa833 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -147,6 +147,13 @@ public:
return comdat_group_;
}
+ tree get_comdat_group_id ()
+ {
+ if (comdat_group_ && TREE_CODE (comdat_group_) != IDENTIFIER_NODE)
+ comdat_group_ = DECL_ASSEMBLER_NAME (comdat_group_);
+ return comdat_group_;
+ }
+
/* Set comdat group. */
void set_comdat_group (tree group)
{