compiler: add debug information to //go:embed slice data

This commit is contained in:
Ayke van Laethem
2023-03-04 22:44:09 +01:00
committed by Ayke
parent 1d86b3f425
commit 11a6c84ea5
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ var (
// alloc: heap allocations during init interpretation
// pack: data created when storing a constant in an interface for example
// string: buffer behind strings
packageSymbolRegexp = regexp.MustCompile(`\$(alloc|embedfsslice|embedslice|pack|string)(\.[0-9]+)?$`)
packageSymbolRegexp = regexp.MustCompile(`\$(alloc|embedfsslice|pack|string)(\.[0-9]+)?$`)
)
// readProgramSizeFromDWARF reads the source location for each line of code and