aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-01-02 01:40:13 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-28 11:41:21 +0100
commit3a3955b5ecbfb27d341e9e0903dff83cffcb3a4d (patch)
tree20024b3b3400070594de27eb4a836de9ce044917
parentffa1eb332ea2c51599f8e1794944cee41065cf61 (diff)
downloadsparse-3a3955b5ecbfb27d341e9e0903dff83cffcb3a4d.tar.gz
make replace_with_pseudo() extern
This function can be useful since it can be useful in other files, for example in memops.c So make it extern.. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--simplify.c2
-rw-r--r--simplify.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/simplify.c b/simplify.c
index 69eae4f8..2c587bea 100644
--- a/simplify.c
+++ b/simplify.c
@@ -443,7 +443,7 @@ static inline int replace_pseudo(struct instruction *insn, pseudo_t *pp, pseudo_
return REPEAT_CSE;
}
-static int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo)
+int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo)
{
convert_instruction_target(insn, pseudo);
return kill_instruction(insn);
diff --git a/simplify.h b/simplify.h
index 200d79c0..ed3dd971 100644
--- a/simplify.h
+++ b/simplify.h
@@ -5,4 +5,6 @@
int simplify_instruction(struct instruction *insn);
+int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo);
+
#endif