aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-08-23 13:13:24 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-13 12:48:48 +0100
commit8a1c335f12107f504bcb8733be357babfc0cb0b2 (patch)
treeafe538a0b859fe30ec7f06085a935b33849bf29c /lib.c
parent383015dbad3785b08220a932a9adb43c574a44f2 (diff)
downloadsparse-dev-8a1c335f12107f504bcb8733be357babfc0cb0b2.tar.gz
dump-ir: rename -fdump-linearize to -fdump-ir
as it will be used for dumping the IR not only just after linearization but after other passes too. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib.c b/lib.c
index a714dc2b..7d7a3647 100644
--- a/lib.c
+++ b/lib.c
@@ -257,8 +257,8 @@ int dump_macro_defs = 0;
int dbg_entry = 0;
int dbg_dead = 0;
+int fdump_ir;
int fmem_report = 0;
-int fdump_linearize;
unsigned long long fmemcpy_max_count = 100000;
unsigned long fpasses = ~0UL;
@@ -795,9 +795,9 @@ static int handle_fpasses(const char *arg, const char *opt, const struct flag *f
static int handle_fdump_ir(const char *arg, const char *opt, const struct flag *flag, int options)
{
if (*opt == '\0')
- fdump_linearize = 1;
+ fdump_ir = 1;
else if (!strcmp(opt, "=only"))
- fdump_linearize = 2;
+ fdump_ir = 2;
else
die("error: wrong option \"%s\"", arg);
@@ -811,7 +811,7 @@ static int handle_fmemcpy_max_count(const char *arg, const char *opt, const stru
}
static struct flag fflags[] = {
- { "dump-linearize", NULL, handle_fdump_ir },
+ { "dump-ir", NULL, handle_fdump_ir },
{ "mem-report", &fmem_report },
{ "memcpy-max-count=", NULL, handle_fmemcpy_max_count },
{ "tabstop=", NULL, handle_ftabstop },