summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-12-07 01:54:09 +0100
committerMatthias Braun <matze@braunis.de>2015-12-07 01:54:09 +0100
commit30d44f489bf400c9aaafab6b39826e14290fbb8f (patch)
treede86a91f6f12c73a21e003de3f92319fa9e3b3aa /ir/ana
parent5842357625c1ed5dab35583bd7fec27a8bc2470e (diff)
Replace get_{struct|union|class}_XXX with get_compound_XXX where possible
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/cgana.c4
-rw-r--r--ir/ana/irmemory.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ir/ana/cgana.c b/ir/ana/cgana.c
index df72f3e..7928d81 100644
--- a/ir/ana/cgana.c
+++ b/ir/ana/cgana.c
@@ -462,8 +462,8 @@ static size_t get_free_methods(ir_entity ***free_methods)
/* insert all methods that are used in global variables initializers */
ir_type *global_tp = get_glob_type();
- for (size_t j = 0, m = get_class_n_members(global_tp); j < m; ++j) {
- ir_entity *const ent = get_class_member(global_tp, j);
+ for (size_t j = 0, m = get_compound_n_members(global_tp); j < m; ++j) {
+ ir_entity *const ent = get_compound_member(global_tp, j);
add_method_address(ent, free_set);
}
ir_type *tls_tp = get_tls_type();
diff --git a/ir/ana/irmemory.c b/ir/ana/irmemory.c
index 09cc15f..14e12db 100644
--- a/ir/ana/irmemory.c
+++ b/ir/ana/irmemory.c
@@ -657,8 +657,8 @@ static void analyse_irg_entity_usage(ir_graph *irg)
/* set initial state to not_taken, as this is the "smallest" state */
ir_type *frame_type = get_irg_frame_type(irg);
- for (size_t i = 0, n = get_class_n_members(frame_type); i < n; ++i) {
- ir_entity *ent = get_class_member(frame_type, i);
+ for (size_t i = 0, n = get_compound_n_members(frame_type); i < n; ++i) {
+ ir_entity *ent = get_compound_member(frame_type, i);
/* methods can only be analyzed globally */
if (is_method_entity(ent))
continue;