From 0da309d460c77277135cffcaa8b2bf75976d3869 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 25 Oct 2016 12:43:12 +0100 Subject: LLL: change -o to be a flag --- lllc/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lllc/main.cpp') diff --git a/lllc/main.cpp b/lllc/main.cpp index 3821d6a3..f8677be0 100644 --- a/lllc/main.cpp +++ b/lllc/main.cpp @@ -99,8 +99,8 @@ int main(int argc, char** argv) mode = Assembly; else if (arg == "-t" || arg == "--parse-tree") mode = ParseTree; - else if ((arg == "-o" || arg == "--optimise") && argc > i + 1) - optimise = atoi(argv[++i]); + else if (arg == "-o" || arg == "--optimise") + optimise = 1; else if (arg == "-d" || arg == "--disassemble") mode = Disassemble; else if (arg == "-V" || arg == "--version") -- cgit