[PATCH] D130217: [Kaleidoscope] Fix DWARF function creation example
Justin Brooks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 18:32:35 PDT 2022
jzbrooks created this revision.
jzbrooks added a reviewer: dblaikie.
Herald added a project: All.
jzbrooks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The full code listing was fixed in fdaeb0c647eb66763721a7fe74e0a36b007dcd75
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130217
Files:
llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
Index: llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
===================================================================
--- llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
+++ llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
@@ -262,8 +262,9 @@
DISubprogram *SP = DBuilder->createFunction(
FContext, P.getName(), StringRef(), Unit, LineNo,
CreateFunctionType(TheFunction->arg_size()),
- false /* internal linkage */, true /* definition */, ScopeLine,
- DINode::FlagPrototyped, false);
+ ScopeLine,
+ DINode::FlagPrototyped,
+ DISubprogram::SPFlagDefinition);
TheFunction->setSubprogram(SP);
and we now have an DISubprogram that contains a reference to all of our
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130217.446323.patch
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220721/afcb2a0f/attachment.bin>
More information about the llvm-commits
mailing list