aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorJustin Brooks <justin@jzbrooks.com>2022-07-25 18:18:53 +0000
committerDavid Blaikie <dblaikie@gmail.com>2022-07-25 18:19:59 +0000
commitfb95b8dc350ea84cf51b5f65aaaf1a5146ff3e47 (patch)
treec063770ae94cd6ec11bf66cac4801df0c8d05a4b /llvm/docs/tutorial/MyFirstLanguageFrontend
parent90c4eda3d29a9d08744891b941a30f1be61dbe46 (diff)
downloadllvm-fb95b8dc350ea84cf51b5f65aaaf1a5146ff3e47.zip
llvm-fb95b8dc350ea84cf51b5f65aaaf1a5146ff3e47.tar.gz
llvm-fb95b8dc350ea84cf51b5f65aaaf1a5146ff3e47.tar.bz2
[Kaleidoscope] Fix DWARF function creation example
The full code listing was fixed in fdaeb0c647eb66763721a7fe74e0a36b007dcd75 Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D130217
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r--llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
index e74bf9b..37c234f 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
@@ -262,8 +262,9 @@ information) and construct our function definition:
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