]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cc, cmd/gc: set ctxt->debugvlog with debug['v']
authorShenghou Ma <minux@golang.org>
Wed, 6 Aug 2014 04:27:14 +0000 (00:27 -0400)
committerShenghou Ma <minux@golang.org>
Wed, 6 Aug 2014 04:27:14 +0000 (00:27 -0400)
LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/118610043

src/cmd/cc/lex.c
src/cmd/gc/lex.c

index 4248437643890bedbd6defc2d0584f2da0d64677..55fc36b1e098e4725f2ccb41b3b0366a9f66603c 100644 (file)
@@ -203,6 +203,7 @@ main(int argc, char *argv[])
        
        flagparse(&argc, &argv, usage);
        ctxt->debugasm = debug['S'];
+       ctxt->debugvlog = debug['v'];
 
        if(argc < 1 && outfile == 0)
                usage();
index 291edb859d86a637a4487089a96b28fb62e390b7..b8252a225e74585208e785952e3597a259db9815 100644 (file)
@@ -319,6 +319,7 @@ main(int argc, char *argv[])
 
        flagparse(&argc, &argv, usage);
        ctxt->debugasm = debug['S'];
+       ctxt->debugvlog = debug['v'];
 
        if(argc < 1)
                usage();