Skip to content

Commit

Permalink
cmd/compile: move parser.go remnants into noder.go
Browse files Browse the repository at this point in the history
Change-Id: I54f8788a4703283b9aa3904e2e610097ac3e3586
Reviewed-on: https://go-review.googlesource.com/32471
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
  • Loading branch information
mdempsky committed Oct 31, 2016
1 parent f2d0538 commit 2d4d22a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
15 changes: 15 additions & 0 deletions src/cmd/compile/internal/gc/noder.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,3 +1150,18 @@ func (p *noder) pragma(pos, line int, text string) syntax.Pragma {

return 0
}

func mkname(sym *Sym) *Node {
n := oldname(sym)
if n.Name != nil && n.Name.Pack != nil {
n.Name.Pack.Used = true
}
return n
}

func unparen(x *Node) *Node {
for x.Op == OPAREN {
x = x.Left
}
return x
}
28 changes: 0 additions & 28 deletions src/cmd/compile/internal/gc/parser.go

This file was deleted.

0 comments on commit 2d4d22a

Please sign in to comment.