ssa: struct debug info creation supports resursive

This commit is contained in:
Li Jie
2024-09-19 09:17:24 +08:00
parent b0f04d91bf
commit f4089bc164
3 changed files with 87 additions and 127 deletions

View File

@@ -712,8 +712,8 @@ func (p Package) diBuilder() diBuilder {
return p.di
}
func (p Package) InitDebugSymbols(name, pkgPath string) {
p.di = newDIBuilder(p.Prog, p)
func (p Package) InitDebugSymbols(name, pkgPath string, positioner Positioner) {
p.di = newDIBuilder(p.Prog, p, positioner)
p.cu = p.di.createCompileUnit(name, pkgPath)
}