diff options
author | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-17 12:40:33 +0200 |
---|---|---|
committer | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-17 13:10:06 +0200 |
commit | c91c8ab11faa895584fdb3776acf45f02011c7b4 (patch) | |
tree | f752801fbb59b51422db5fa66834013d6d0c251b /gcc/expr-rewriter.c | |
parent | 7bb28ab761e556581a6ecd4cb59c7bf903b8f4fc (diff) |
can deal with arrays
Diffstat (limited to 'gcc/expr-rewriter.c')
-rw-r--r-- | gcc/expr-rewriter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/expr-rewriter.c b/gcc/expr-rewriter.c index 616271d96c7..6ea2b42c580 100644 --- a/gcc/expr-rewriter.c +++ b/gcc/expr-rewriter.c @@ -13,16 +13,16 @@ ExprTypeRewriter::_walk_post(const_tree e) tree r_t = _map[t]; TREE_TYPE((tree)e) = r_t; - TypeStringifier stringifer; - const std::string t_name = stringifer.stringify(t); - const std::string r_t_name = stringifer.stringify(r_t); - log("replacing %s with %s\n", t_name.c_str(), r_t_name.c_str()); + //TypeStringifier stringifer; + //const std::string r_t_name = stringifer.stringify(r_t); + //const std::string t_name = stringifer.stringify(t); + //log("replacing %s with %s\n", t_name.c_str(), r_t_name.c_str()); } void ExprTypeRewriter::_walk_COMPONENT_REF_post(const_tree e) { - // TODO: I need to rewrite the field + const_tree f = TREE_OPERAND(e, 1); // So, what we need is a map between this field and the new field const bool in_map = _map2.find(f) != _map2.end(); |