projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcbcd42
)
Update tutorial for debug info IR change.
author
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 5 Nov 2015 22:55:44 +0000
(22:55 +0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 5 Nov 2015 22:55:44 +0000
(22:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252226
91177308
-0d34-0410-b5e6-
96231b3b80d8
docs/tutorial/LangImpl8.rst
patch
|
blob
|
history
diff --git
a/docs/tutorial/LangImpl8.rst
b/docs/tutorial/LangImpl8.rst
index dff6ddcf27051c2e73074cd300e7f784b97b97b3..0f8a0ab0dfc3f46e15495ff50bb57064df575bac 100644
(file)
--- a/
docs/tutorial/LangImpl8.rst
+++ b/
docs/tutorial/LangImpl8.rst
@@
-261,7
+261,8
@@
information) and construct our function definition:
DISubprogram *SP = DBuilder->createFunction(
FContext, Name, StringRef(), Unit, LineNo,
CreateFunctionType(Args.size(), Unit), false /* internal linkage */,
- true /* definition */, ScopeLine, DINode::FlagPrototyped, false, F);
+ true /* definition */, ScopeLine, DINode::FlagPrototyped, false);
+ F->setSubprogram(SP);
and we now have an DISubprogram that contains a reference to all of our
metadata for the function.