summaryrefslogtreecommitdiff
path: root/llgo
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-11-05 22:04:20 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-11-05 22:04:20 +0000
commit87a809e0883f8409bc5a0eba51bc9eca8b2a2038 (patch)
treed484051807e1c6dbea9dc684ff9cf15973fcb5e2 /llgo
parentedcadbf625e3c9f04bf67fb54ddb7161ab0a6a03 (diff)
debug: Update for debug info API change.
Diffstat (limited to 'llgo')
-rw-r--r--llgo/debug/debug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/llgo/debug/debug.go b/llgo/debug/debug.go
index 683c6be53f6..2e641692ad0 100644
--- a/llgo/debug/debug.go
+++ b/llgo/debug/debug.go
@@ -136,8 +136,8 @@ func (d *DIBuilder) PushFunction(fnptr llvm.Value, sig *types.Signature, pos tok
Line: line,
Type: d.DIType(sig),
IsDefinition: true,
- Function: fnptr,
})
+ fnptr.SetSubprogram(d.fn)
}
// PopFunction pops the previously pushed function off the scope stack.