From 92d9f856ab704ec8615fc289a07fc9e0e7443778 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 1 Jun 2023 18:50:31 +0200 Subject: main: rename some flags to make them explicitly internal These flags shouldn't be used by users, but they are occasionally helpful for developers. --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index ffa660d01..c1980881c 100644 --- a/main.go +++ b/main.go @@ -1401,9 +1401,6 @@ func main() { serial := flag.String("serial", "", "which serial output to use (none, uart, usb)") work := flag.Bool("work", false, "print the name of the temporary build directory and do not delete this directory on exit") interpTimeout := flag.Duration("interp-timeout", 180*time.Second, "interp optimization pass timeout") - printIR := flag.Bool("printir", false, "print LLVM IR") - dumpSSA := flag.Bool("dumpssa", false, "dump internal Go SSA") - verifyIR := flag.Bool("verifyir", false, "run extra verification steps on LLVM IR") var tags buildutil.TagsFlag flag.Var(&tags, "tags", "a space-separated list of extra build tags") target := flag.String("target", "", "chip/board name or JSON target specification file") @@ -1430,6 +1427,11 @@ func main() { monitor := flag.Bool("monitor", false, "enable serial monitor") baudrate := flag.Int("baudrate", 115200, "baudrate of serial monitor") + // Internal flags, that are only intended for TinyGo development. + printIR := flag.Bool("internal-printir", false, "print LLVM IR") + dumpSSA := flag.Bool("internal-dumpssa", false, "dump internal Go SSA") + verifyIR := flag.Bool("internal-verifyir", false, "run extra verification steps on LLVM IR") + var flagJSON, flagDeps, flagTest bool if command == "help" || command == "list" || command == "info" || command == "build" { flag.BoolVar(&flagJSON, "json", false, "print data in JSON format") -- cgit v1.2.3