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/collect-types.c | |
parent | 095fb75003c2ba67f9b1088dde507ab5bc0d41a9 (diff) |
Adds ability to find casting between types
Diffstat (limited to 'gcc/collect-types.c')
-rw-r--r-- | gcc/collect-types.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/collect-types.c b/gcc/collect-types.c index b3febdd57d7..f4ad113b56f 100644 --- a/gcc/collect-types.c +++ b/gcc/collect-types.c @@ -72,3 +72,15 @@ points_to_record_sets_s::in_complement(const_tree type) const return seen_before; } +void +points_to_record_sets_s::print_in_points_to_record() const +{ + TypeStringifier stringifier; + for (auto i = this->points_to_record.cbegin(), e = this->points_to_record.cend(); i != e; ++i) + { + const_tree t = *i; + gcc_assert(t); + std::string name = stringifier.stringify(t); + log("collected: %s\n", name.c_str()); + } +} |