Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/llgo
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-11-06 01:04:20 +0300
committerPeter Collingbourne <peter@pcc.me.uk>2015-11-06 01:04:20 +0300
commit8324851a4eec3cf12d8b042eaa5cc7bf58d52212 (patch)
treec29e5cf4f953201bb4f52cc2c2c317d83bed363f /llgo
parent0900fe0f1bdae8e87d0400c89673601217055c93 (diff)
debug: Update for debug info API change.
llvm-svn: 252221
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 683c6be53f68..2e641692ad0a 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.