From 2c641c0a8fd1961383cd3e1f47f1508e389d631d Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 5 Nov 2015 22:55:44 +0000 Subject: [PATCH] Update tutorial for debug info IR change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252226 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl8.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/LangImpl8.rst b/docs/tutorial/LangImpl8.rst index dff6ddcf270..0f8a0ab0dfc 100644 --- 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. -- 2.34.1