attachDebugInfo adds debug info to a function declaration. It returns the DISubprogram metadata node.
(f *ssa.Function)
| 781 | // attachDebugInfo adds debug info to a function declaration. It returns the |
| 782 | // DISubprogram metadata node. |
| 783 | func (c *compilerContext) attachDebugInfo(f *ssa.Function) llvm.Metadata { |
| 784 | pos := c.program.Fset.Position(f.Syntax().Pos()) |
| 785 | _, fn := c.getFunction(f) |
| 786 | return c.attachDebugInfoRaw(f, fn, "", pos.Filename, pos.Line) |
| 787 | } |
| 788 | |
| 789 | // attachDebugInfo adds debug info to a function declaration. It returns the |
| 790 | // DISubprogram metadata node. This method allows some more control over how |
no test coverage detected