mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: rename Thearch to thearch
Prepared using gorename. Change-Id: Id55dac9ae5446a8bfeac06e7995b35f4c249eeca Reviewed-on: https://go-review.googlesource.com/38302 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
3e2f980e27
commit
09272ae981
9 changed files with 36 additions and 36 deletions
|
|
@ -20,7 +20,7 @@ func offmod(t *Type) {
|
|||
for _, f := range t.Fields().Slice() {
|
||||
f.Offset = int64(o)
|
||||
o += int32(Widthptr)
|
||||
if int64(o) >= Thearch.MAXWIDTH {
|
||||
if int64(o) >= thearch.MAXWIDTH {
|
||||
yyerror("interface too large")
|
||||
o = int32(Widthptr)
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@ func widstruct(errtype *Type, t *Type, o int64, flag int) int64 {
|
|||
lastzero = o
|
||||
}
|
||||
o += w
|
||||
maxwidth := Thearch.MAXWIDTH
|
||||
maxwidth := thearch.MAXWIDTH
|
||||
// On 32-bit systems, reflect tables impose an additional constraint
|
||||
// that each field start offset must fit in 31 bits.
|
||||
if maxwidth < 1<<32 {
|
||||
|
|
@ -258,7 +258,7 @@ func dowidth(t *Type) {
|
|||
|
||||
dowidth(t.Elem())
|
||||
if t.Elem().Width != 0 {
|
||||
cap := (uint64(Thearch.MAXWIDTH) - 1) / uint64(t.Elem().Width)
|
||||
cap := (uint64(thearch.MAXWIDTH) - 1) / uint64(t.Elem().Width)
|
||||
if uint64(t.NumElem()) > cap {
|
||||
yyerror("type %L larger than address space", t)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue