aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/link.go
diff options
context:
space:
mode:
authorMarvin Stenger <marvin.stenger94@gmail.com>2016-03-28 11:34:37 +0200
committerDavid Crawshaw <crawshaw@golang.org>2016-03-28 16:32:59 +0000
commit2326c24cc722f5093f40ea0964c93addd155ada0 (patch)
tree82a6101956102488e15b4cd48757ac17a88bfe3f /src/cmd/internal/obj/link.go
parent8eec2bbfbc4f209950f677906c6ce67e01d32930 (diff)
downloadgo-2326c24cc722f5093f40ea0964c93addd155ada0.tar.xz
cmd/internal/obj: convert fields of LSym from uint8 to bool
No performance regression measurable: name old time/op new time/op delta Template 432ms ± 3% 422ms ± 2% -2.34% (p=0.010 n=10+9) GoTypes 1.46s ± 1% 1.46s ± 1% ~ (p=0.796 n=10+10) Compiler 7.15s ± 1% 7.14s ± 1% ~ (p=0.447 n=10+9) Change-Id: I21b93cb989017b6fec2215de2423d87f25cf538c Reviewed-on: https://go-review.googlesource.com/21220 Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/obj/link.go')
-rw-r--r--src/cmd/internal/obj/link.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/internal/obj/link.go b/src/cmd/internal/obj/link.go
index 0bf72817e6..11d451abb2 100644
--- a/src/cmd/internal/obj/link.go
+++ b/src/cmd/internal/obj/link.go
@@ -309,12 +309,12 @@ type LSym struct {
Name string
Type int16
Version int16
- Dupok uint8
- Cfunc uint8
- Nosplit uint8
- Leaf uint8
- Seenglobl uint8
- Onlist uint8
+ Dupok bool
+ Cfunc bool
+ Nosplit bool
+ Leaf bool
+ Seenglobl bool
+ Onlist bool
// ReflectMethod means the function may call reflect.Type.Method or
// reflect.Type.MethodByName. Matching is imprecise (as reflect.Type