diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2022-02-14 09:41:19 -0800 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2022-03-01 07:36:05 +0000 |
| commit | 7c151f328056c354d3db13c17b3d96bec316cff6 (patch) | |
| tree | 01327d059a54a85d4cfe4f83bdcefeb2626d6c9f /src/cmd/compile/internal/noder/syncmarker_string.go | |
| parent | 6d881da9c894dfcd8c3dda0057a7c63a3ab59ea2 (diff) | |
| download | go-7c151f328056c354d3db13c17b3d96bec316cff6.tar.xz | |
internal/pkgbits: extract unified IR coding-level logic
This logic is needed for the go/types unified IR importer, so extract
it into a separate internal package so we can reuse a single copy.
Change-Id: I5f734b76e580fdb69ee39e45ac553c22d01c5909
Reviewed-on: https://go-review.googlesource.com/c/go/+/386000
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/noder/syncmarker_string.go')
| -rw-r--r-- | src/cmd/compile/internal/noder/syncmarker_string.go | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/cmd/compile/internal/noder/syncmarker_string.go b/src/cmd/compile/internal/noder/syncmarker_string.go deleted file mode 100644 index 1ee848cda8..0000000000 --- a/src/cmd/compile/internal/noder/syncmarker_string.go +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by "stringer -type=syncMarker -trimprefix=sync"; DO NOT EDIT. - -package noder - -import "strconv" - -func _() { - // An "invalid array index" compiler error signifies that the constant values have changed. - // Re-run the stringer command to generate them again. - var x [1]struct{} - _ = x[syncEOF-1] - _ = x[syncBool-2] - _ = x[syncInt64-3] - _ = x[syncUint64-4] - _ = x[syncString-5] - _ = x[syncValue-6] - _ = x[syncVal-7] - _ = x[syncRelocs-8] - _ = x[syncReloc-9] - _ = x[syncUseReloc-10] - _ = x[syncPublic-11] - _ = x[syncPos-12] - _ = x[syncPosBase-13] - _ = x[syncObject-14] - _ = x[syncObject1-15] - _ = x[syncPkg-16] - _ = x[syncPkgDef-17] - _ = x[syncMethod-18] - _ = x[syncType-19] - _ = x[syncTypeIdx-20] - _ = x[syncTypeParamNames-21] - _ = x[syncSignature-22] - _ = x[syncParams-23] - _ = x[syncParam-24] - _ = x[syncCodeObj-25] - _ = x[syncSym-26] - _ = x[syncLocalIdent-27] - _ = x[syncSelector-28] - _ = x[syncPrivate-29] - _ = x[syncFuncExt-30] - _ = x[syncVarExt-31] - _ = x[syncTypeExt-32] - _ = x[syncPragma-33] - _ = x[syncExprList-34] - _ = x[syncExprs-35] - _ = x[syncExpr-36] - _ = x[syncOp-37] - _ = x[syncFuncLit-38] - _ = x[syncCompLit-39] - _ = x[syncDecl-40] - _ = x[syncFuncBody-41] - _ = x[syncOpenScope-42] - _ = x[syncCloseScope-43] - _ = x[syncCloseAnotherScope-44] - _ = x[syncDeclNames-45] - _ = x[syncDeclName-46] - _ = x[syncStmts-47] - _ = x[syncBlockStmt-48] - _ = x[syncIfStmt-49] - _ = x[syncForStmt-50] - _ = x[syncSwitchStmt-51] - _ = x[syncRangeStmt-52] - _ = x[syncCaseClause-53] - _ = x[syncCommClause-54] - _ = x[syncSelectStmt-55] - _ = x[syncDecls-56] - _ = x[syncLabeledStmt-57] - _ = x[syncUseObjLocal-58] - _ = x[syncAddLocal-59] - _ = x[syncLinkname-60] - _ = x[syncStmt1-61] - _ = x[syncStmtsEnd-62] - _ = x[syncLabel-63] - _ = x[syncOptLabel-64] -} - -const _syncMarker_name = "EOFBoolInt64Uint64StringValueValRelocsRelocUseRelocPublicPosPosBaseObjectObject1PkgPkgDefMethodTypeTypeIdxTypeParamNamesSignatureParamsParamCodeObjSymLocalIdentSelectorPrivateFuncExtVarExtTypeExtPragmaExprListExprsExprOpFuncLitCompLitDeclFuncBodyOpenScopeCloseScopeCloseAnotherScopeDeclNamesDeclNameStmtsBlockStmtIfStmtForStmtSwitchStmtRangeStmtCaseClauseCommClauseSelectStmtDeclsLabeledStmtUseObjLocalAddLocalLinknameStmt1StmtsEndLabelOptLabel" - -var _syncMarker_index = [...]uint16{0, 3, 7, 12, 18, 24, 29, 32, 38, 43, 51, 57, 60, 67, 73, 80, 83, 89, 95, 99, 106, 120, 129, 135, 140, 147, 150, 160, 168, 175, 182, 188, 195, 201, 209, 214, 218, 220, 227, 234, 238, 246, 255, 265, 282, 291, 299, 304, 313, 319, 326, 336, 345, 355, 365, 375, 380, 391, 402, 410, 418, 423, 431, 436, 444} - -func (i syncMarker) String() string { - i -= 1 - if i < 0 || i >= syncMarker(len(_syncMarker_index)-1) { - return "syncMarker(" + strconv.FormatInt(int64(i+1), 10) + ")" - } - return _syncMarker_name[_syncMarker_index[i]:_syncMarker_index[i+1]] -} |
