compiler: add debug info to []embed.files backing array

This commit is contained in:
Ayke van Laethem
2023-03-04 22:39:40 +01:00
committed by Ayke
parent f9b6f8339b
commit 1d86b3f425
2 changed files with 17 additions and 4 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|embedfsfiles|embedfsslice|embedslice|pack|string)(\.[0-9]+)?$`)
packageSymbolRegexp = regexp.MustCompile(`\$(alloc|embedfsslice|embedslice|pack|string)(\.[0-9]+)?$`)
)
// readProgramSizeFromDWARF reads the source location for each line of code and