]> Cypherpunks repositories - gostls13.git/commitdiff
gc: nits
authorRuss Cox <rsc@golang.org>
Thu, 9 Jun 2011 15:44:28 +0000 (11:44 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 9 Jun 2011 15:44:28 +0000 (11:44 -0400)
R=ken2
CC=golang-dev
https://golang.org/cl/4572052

src/cmd/gc/pgen.c
src/cmd/gc/print.c

index 9bd845dde4e72af8390ffada9660fa555bb7733b..7917ea29cc84b83eb6ad31e33a8edc43d71e8344 100644 (file)
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#undef EXTERN
-#define        EXTERN
-#include "gg.h"
-#include "opt.h"
+#include       "gg.h"
+#include       "opt.h"
 
 void
 compile(Node *fn)
index e03a14080181ac7df31e837a0c1a6d21acc416c9..e88e0f844eb8489a168294860697f96520bd79c8 100644 (file)
@@ -134,6 +134,10 @@ exprfmt(Fmt *f, Node *n, int prec)
                fmtprint(f, "(node %O)", n->op);
                break;
 
+       case OREGISTER:
+               fmtprint(f, "%R", n->val.u.reg);
+               break;
+
        case OLITERAL:
                if(n->sym != S) {
                        fmtprint(f, "%S", n->sym);