| 1 | // Copyright 2021 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package pkgbitsscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/ |
| 6 | |
| 7 | // A RelocKind indicates a particular section within a unified IR export. |
| 8 | type RelocKindscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocKind# int32 |
| 9 | |
| 10 | // An Index represents a bitstream element index within a particular |
| 11 | // section. |
| 12 | type Indexscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/Index# int32 |
| 13 | |
| 14 | // A relocEnt (relocation entry) is an entry in an element's local |
| 15 | // reference table. |
| 16 | // |
| 17 | // TODO(mdempsky): Rename this too. |
| 18 | type RelocEntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocEnt# struct { |
| 19 | Kindscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocEnt#Kind. RelocKindscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocKind# |
| 20 | Idxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocEnt#Idx. Indexscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/Index# |
| 21 | } |
| 22 | |
| 23 | // Reserved indices within the meta relocation section. |
| 24 | const ( |
| 25 | PublicRootIdxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/PublicRootIdx. Indexscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/Index# = 0 |
| 26 | PrivateRootIdxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/PrivateRootIdx. Indexscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/Index# = 1 |
| 27 | ) |
| 28 | |
| 29 | const ( |
| 30 | RelocStringscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocString. RelocKindscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocKind# = iota |
| 31 | RelocMetascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocMeta. |
| 32 | RelocPosBasescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocPosBase. |
| 33 | RelocPkgscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocPkg. |
| 34 | RelocNamescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocName. |
| 35 | RelocTypescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocType. |
| 36 | RelocObjscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocObj. |
| 37 | RelocObjExtscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocObjExt. |
| 38 | RelocObjDictscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocObjDict. |
| 39 | RelocBodyscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/RelocBody. |
| 40 | |
| 41 | numRelocsscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/pkgbits`/numRelocs. = iota |
| 42 | ) |