diff options
| author | Dan Scales <danscales@google.com> | 2021-09-22 08:52:41 -0700 |
|---|---|---|
| committer | Dan Scales <danscales@google.com> | 2021-09-22 23:17:55 +0000 |
| commit | ee69b09424f611d02d4b0f0da3eff875e075438f (patch) | |
| tree | 6c24b7f2360d70242cc61c94da297c9ac80319d4 /src/cmd/internal/objabi | |
| parent | 1319b1476ea6f55c780936d133a005054fa81234 (diff) | |
| download | go-ee69b09424f611d02d4b0f0da3eff875e075438f.tar.xz | |
cmd/compile: break out constants for local and global dictionary prefixes
Create constant LocalDictName for the pname/refix for dictionary
parameters or local variables, and constant GlobalDictPrefix for the
prefix for names of global dictionaries. I wanted to make sure these
constants were set up as we add more reference to dictionaries for
debugging, etc.
Change-Id: Ide801f842383300a2699c96943ec06decaecc358
Reviewed-on: https://go-review.googlesource.com/c/go/+/351450
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/internal/objabi')
| -rw-r--r-- | src/cmd/internal/objabi/util.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/internal/objabi/util.go b/src/cmd/internal/objabi/util.go index 63640950d9..6bfa25a5ca 100644 --- a/src/cmd/internal/objabi/util.go +++ b/src/cmd/internal/objabi/util.go @@ -13,7 +13,8 @@ import ( const ( ElfRelocOffset = 256 - MachoRelocOffset = 2048 // reserve enough space for ELF relocations + MachoRelocOffset = 2048 // reserve enough space for ELF relocations + GlobalDictPrefix = ".dict" // prefix for names of global dictionaries ) // HeaderString returns the toolchain configuration string written in |
