[PATCH] D130217: [Kaleidoscope] Fix DWARF function creation example

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 11:20:27 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfb95b8dc350e: [Kaleidoscope] Fix DWARF function creation example (authored by jzbrooks, committed by dblaikie).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130217/new/

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.447413.patch
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220725/89872a7d/attachment.bin>


More information about the llvm-commits mailing list