diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-01-02 01:40:13 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-11-28 11:41:21 +0100 |
commit | 3a3955b5ecbfb27d341e9e0903dff83cffcb3a4d (patch) | |
tree | 20024b3b3400070594de27eb4a836de9ce044917 | |
parent | ffa1eb332ea2c51599f8e1794944cee41065cf61 (diff) | |
download | sparse-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.c | 2 | ||||
-rw-r--r-- | simplify.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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); @@ -5,4 +5,6 @@ int simplify_instruction(struct instruction *insn); +int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo); + #endif |