diff options
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 9c6f55896b0..882f1e81410 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -157,9 +157,24 @@ public: /* Set comdat group. */ void set_comdat_group (tree group) { + gcc_checking_assert (!group || TREE_CODE (group) == IDENTIFIER_NODE + || DECL_P (group)); comdat_group_ = group; } + /* Return section. */ + tree get_section () + { + return section_; + } + + /* Set section. */ + void set_section (tree section) + { + gcc_checking_assert (!section || TREE_CODE (section) == STRING_CST); + section_ = section; + } + /* Vectors of referring and referenced entities. */ struct ipa_ref_list ref_list; @@ -175,6 +190,9 @@ public: /* Comdat group the symbol is in. Can be private if GGC allowed that. */ tree comdat_group_; + + /* Section name. Again can be private, if allowed. */ + tree section_; }; enum availability |