diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2021-11-11 15:13:56 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2021-11-11 15:18:00 +0300 |
commit | 72fc2f8cfb13b17b70e68411b244ed5a19958b6c (patch) | |
tree | 543a9f20fca1188d1d72e1f4685aa834586c2527 /node.hpp | |
parent | f740ea85e9dafa441a0617cce9e743433f3eb352 (diff) |
Fix const-correctness for entry_exit_relationship test.
Diffstat (limited to 'node.hpp')
-rw-r--r-- | node.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -114,7 +114,7 @@ private: void recompute_immediate_post_dominator(); template <typename Op> - void traverse_dominated_blocks(const Op &op); + void traverse_dominated_blocks(const Op &op) const; CFGNode *get_outer_selection_dominator(); CFGNode *get_outer_header_dominator(); @@ -129,7 +129,7 @@ private: void traverse_dominated_blocks_and_rewrite_branch(const CFGNode &header, CFGNode *from, CFGNode *to, const Op &op, UnorderedSet<const CFGNode *> &visitation_cache); template <typename Op> - void traverse_dominated_blocks(const CFGNode &header, const Op &op); + void traverse_dominated_blocks(const CFGNode &header, const Op &op) const; void retarget_fake_succ(CFGNode *from, CFGNode *to); }; @@ -208,7 +208,7 @@ void CFGNode::traverse_dominated_blocks_and_rewrite_branch(const CFGNode &header } template <typename Op> -void CFGNode::traverse_dominated_blocks(const CFGNode &header, const Op &op) +void CFGNode::traverse_dominated_blocks(const CFGNode &header, const Op &op) const { for (auto *node : succ) { @@ -221,7 +221,7 @@ void CFGNode::traverse_dominated_blocks(const CFGNode &header, const Op &op) } template <typename Op> -void CFGNode::traverse_dominated_blocks(const Op &op) +void CFGNode::traverse_dominated_blocks(const Op &op) const { traverse_dominated_blocks(*this, op); } |