SetLocation sets the source location of the next instructions to be built.
(line, column int)
| 190 | |
| 191 | // SetLocation sets the source location of the next instructions to be built. |
| 192 | func (b *Builder) SetLocation(line, column int) { |
| 193 | if f := b.function.dbg; f != nil { |
| 194 | b.llvm.SetCurrentDebugLocation(uint(line), uint(column), f.scope, llvm.Metadata{}) |
| 195 | f.curLine, f.curColumn = line, column |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func (b *Builder) dbgRestoreLocation() { |
| 200 | if d := b.function.dbg; d != nil { |
no outgoing calls
no test coverage detected