summaryrefslogtreecommitdiff
path: root/gcc/ipa-str-reorg-dead-field-eliminate.c
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-03-10 16:30:54 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-06-03 16:05:21 +0200
commit136f2749fd3ac846a8e5be2cbbf32abdb7b9e179 (patch)
tree2d4b4d1863d8c85fa70df22305379c96581ddbb1 /gcc/ipa-str-reorg-dead-field-eliminate.c
parente4389908cc090e769b94051c7ddef4136565173c (diff)
Succeeds in passing simple read test
Diffstat (limited to 'gcc/ipa-str-reorg-dead-field-eliminate.c')
-rw-r--r--gcc/ipa-str-reorg-dead-field-eliminate.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/ipa-str-reorg-dead-field-eliminate.c b/gcc/ipa-str-reorg-dead-field-eliminate.c
index ddb7b74b30a..f110b4e7585 100644
--- a/gcc/ipa-str-reorg-dead-field-eliminate.c
+++ b/gcc/ipa-str-reorg-dead-field-eliminate.c
@@ -519,20 +519,6 @@ get_field_offset (const_tree field)
return offset;
}
-static const char *
-get_field_name (const_tree field_decl)
-{
- gcc_assert (field_decl);
- gcc_assert (TREE_CODE (field_decl) == FIELD_DECL);
- // TODO: deal with anonymous fields.
- tree id = DECL_NAME (field_decl);
- if (!id)
- return "anonymous";
- gcc_assert (id);
- const char *identifier = IDENTIFIER_POINTER (id);
- gcc_assert (identifier);
- return identifier;
-}
static const_tree
get_field_with_offset_unsafe (const_tree record, const unsigned offset)