From: Peter Collingbourne <peter@pcc.me.uk>
Date: Thu, 5 Nov 2015 22:55:44 +0000 (+0000)
Subject: Update tutorial for debug info IR change.
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2c641c0a8fd1961383cd3e1f47f1508e389d631d;p=oota-llvm.git

Update tutorial for debug info IR change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252226 91177308-0d34-0410-b5e6-96231b3b80d8
---

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.