[llvm] r252226 - Update tutorial for debug info IR change.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 14:55:44 PST 2015
Author: pcc
Date: Thu Nov 5 16:55:44 2015
New Revision: 252226
URL: http://llvm.org/viewvc/llvm-project?rev=252226&view=rev
Log:
Update tutorial for debug info IR change.
Modified:
llvm/trunk/docs/tutorial/LangImpl8.rst
Modified: llvm/trunk/docs/tutorial/LangImpl8.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl8.rst?rev=252226&r1=252225&r2=252226&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl8.rst (original)
+++ llvm/trunk/docs/tutorial/LangImpl8.rst Thu Nov 5 16:55:44 2015
@@ -261,7 +261,8 @@ information) and construct our function
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.
More information about the llvm-commits
mailing list