diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-25 19:43:12 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-25 19:43:18 +0800 |
commit | 0da309d460c77277135cffcaa8b2bf75976d3869 (patch) | |
tree | 755b751dcbaa87cd45f50f3b341023d46d84a2c3 /lllc/main.cpp | |
parent | 3a6ac6226cae21c3c00fae1acf4481d8101f5371 (diff) | |
download | dexon-solidity-0da309d460c77277135cffcaa8b2bf75976d3869.tar.gz dexon-solidity-0da309d460c77277135cffcaa8b2bf75976d3869.tar.zst dexon-solidity-0da309d460c77277135cffcaa8b2bf75976d3869.zip |
LLL: change -o to be a flag
Diffstat (limited to 'lllc/main.cpp')
-rw-r--r-- | lllc/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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") |