diff options
| author | Ian Lance Taylor <iant@golang.org> | 2019-05-01 17:48:46 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-09-03 17:32:37 +0000 |
| commit | 663680b3d45a276fc2f246c61deeb79acf634591 (patch) | |
| tree | b9df2cc91ec1f90763e63e72935de7adea1b7557 /src/debug/dwarf/class_string.go | |
| parent | 3c5614344234af95250f06fb97d605a2005d5353 (diff) | |
| download | go-663680b3d45a276fc2f246c61deeb79acf634591.tar.xz | |
debug/dwarf: add new constants defined in DWARF 5
Also add a few other missing constants.
Also rerun current version of stringer.
Change-Id: I004ef27f6b40fe2cab64c52d169255dfea43fa01
Reviewed-on: https://go-review.googlesource.com/c/go/+/175137
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/debug/dwarf/class_string.go')
| -rw-r--r-- | src/debug/dwarf/class_string.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/debug/dwarf/class_string.go b/src/debug/dwarf/class_string.go index a6aabff524..76de7cad31 100644 --- a/src/debug/dwarf/class_string.go +++ b/src/debug/dwarf/class_string.go @@ -4,6 +4,27 @@ package dwarf 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[ClassUnknown-0] + _ = x[ClassAddress-1] + _ = x[ClassBlock-2] + _ = x[ClassConstant-3] + _ = x[ClassExprLoc-4] + _ = x[ClassFlag-5] + _ = x[ClassLinePtr-6] + _ = x[ClassLocListPtr-7] + _ = x[ClassMacPtr-8] + _ = x[ClassRangeListPtr-9] + _ = x[ClassReference-10] + _ = x[ClassReferenceSig-11] + _ = x[ClassString-12] + _ = x[ClassReferenceAlt-13] + _ = x[ClassStringAlt-14] +} + const _Class_name = "ClassUnknownClassAddressClassBlockClassConstantClassExprLocClassFlagClassLinePtrClassLocListPtrClassMacPtrClassRangeListPtrClassReferenceClassReferenceSigClassStringClassReferenceAltClassStringAlt" var _Class_index = [...]uint8{0, 12, 24, 34, 47, 59, 68, 80, 95, 106, 123, 137, 154, 165, 182, 196} |
