aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-18 22:33:20 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-01 09:07:45 +0100
commit5e7e4bdd97fc0f363762847fced34583ba47c9d0 (patch)
tree424b42242aafa364343767bf3491e292c52ceedb /example.c
parent29f889c3980d4f36f9f87a667b3ba597d97cbf82 (diff)
downloadsparse-dev-5e7e4bdd97fc0f363762847fced34583ba47c9d0.tar.gz
IR: remove never-generated instructions
Some of the IR instructions have been defined but are never generated. Remove them as they have no purposes. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'example.c')
-rw-r--r--example.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/example.c b/example.c
index 54986a54..fd22d8ab 100644
--- a/example.c
+++ b/example.c
@@ -25,9 +25,7 @@ static const char *opcodes[] = {
[OP_BR] = "br",
[OP_CBR] = "cbr",
[OP_SWITCH] = "switch",
- [OP_INVOKE] = "invoke",
[OP_COMPUTEDGOTO] = "jmp *",
- [OP_UNWIND] = "unwind",
/* Binary */
[OP_ADD] = "add",
@@ -68,13 +66,9 @@ static const char *opcodes[] = {
[OP_SEL] = "select",
/* Memory */
- [OP_MALLOC] = "malloc",
- [OP_FREE] = "free",
- [OP_ALLOCA] = "alloca",
[OP_LOAD] = "load",
[OP_STORE] = "store",
[OP_SETVAL] = "set",
- [OP_GET_ELEMENT_PTR] = "getelem",
/* Other */
[OP_PHI] = "phi",
@@ -85,8 +79,6 @@ static const char *opcodes[] = {
[OP_FPCAST] = "fpcast",
[OP_PTRCAST] = "ptrcast",
[OP_CALL] = "call",
- [OP_VANEXT] = "va_next",
- [OP_VAARG] = "va_arg",
[OP_SLICE] = "slice",
[OP_NOP] = "nop",
[OP_DEATHNOTE] = "dead",