MCPcopy Create free account
hub / github.com/google/gapid / SetLocation

Method SetLocation

core/codegen/debug.go:192–197  ·  view source on GitHub ↗

SetLocation sets the source location of the next instructions to be built.

(line, column int)

Source from the content-addressed store, hash-verified

190
191// SetLocation sets the source location of the next instructions to be built.
192func (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
199func (b *Builder) dbgRestoreLocation() {
200 if d := b.function.dbg; d != nil {

Callers 5

dbgRestoreLocationMethod · 0.95
commandMethod · 0.45
subroutineMethod · 0.45
blockMethod · 0.45
onChangeStatementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected