summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-11-05 22:55:44 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-11-05 22:55:44 +0000
commit12ec50553f2444bc04ce9978cdb33eae9585a122 (patch)
treecac71e245dbdeeed4972762afca65de029e070f9 /llvm/docs/tutorial
parent9b6b069a387b5c7ecbc7e406a60bbab988cf4b2b (diff)
downloadbcm5719-llvm-12ec50553f2444bc04ce9978cdb33eae9585a122.tar.gz
bcm5719-llvm-12ec50553f2444bc04ce9978cdb33eae9585a122.zip
Update tutorial for debug info IR change.
llvm-svn: 252226
Diffstat (limited to 'llvm/docs/tutorial')
-rw-r--r--llvm/docs/tutorial/LangImpl8.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/LangImpl8.rst b/llvm/docs/tutorial/LangImpl8.rst
index dff6ddcf270..0f8a0ab0dfc 100644
--- a/llvm/docs/tutorial/LangImpl8.rst
+++ b/llvm/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.
OpenPOWER on IntegriCloud