diff options
author | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-08 15:09:24 +0200 |
---|---|---|
committer | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-08 15:09:24 +0200 |
commit | 140efef10e83422f31b8773dd0ffbf72d2fb0741 (patch) | |
tree | 37b81694b561c6959b354f915245320fca6d080f /gcc/ipa-str-reorg-dead-field-eliminate.c | |
parent | 095fb75003c2ba67f9b1088dde507ab5bc0d41a9 (diff) |
Adds ability to find casting between types
Diffstat (limited to 'gcc/ipa-str-reorg-dead-field-eliminate.c')
-rw-r--r-- | gcc/ipa-str-reorg-dead-field-eliminate.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ipa-str-reorg-dead-field-eliminate.c b/gcc/ipa-str-reorg-dead-field-eliminate.c index 77f9d3141b2..2e192328ad8 100644 --- a/gcc/ipa-str-reorg-dead-field-eliminate.c +++ b/gcc/ipa-str-reorg-dead-field-eliminate.c @@ -52,6 +52,8 @@ along with GCC; see the file COPYING3. If not see #include "ipa-str-reorg-utils.h" #include "ipa-hello-world.h" +#include "gimple-caster.hpp" + #define test_write(M, ...) \ if (dump_file) \ { \ @@ -2765,6 +2767,13 @@ str_reorg_dead_field_eliminate (__attribute__((unused)) Info *info) int str_reorg_dead_field_eliminate_qual (Info *info) { + GimpleCaster caster(info->sets); + caster.walk(); + // sets here now holds the types that + // are casted... + // So, maybe we want to print them? + caster.print_reasons(); + ptrset_t sets = caster.get_sets(); return 0; } int |