Update tutorial for debug info IR change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne 2015-11-05 22:55:44 +00:00
parent dcbcd42f5c
commit 2c641c0a8f

View File

@ -261,7 +261,8 @@ information) and construct our function definition:
DISubprogram *SP = DBuilder->createFunction( DISubprogram *SP = DBuilder->createFunction(
FContext, Name, StringRef(), Unit, LineNo, FContext, Name, StringRef(), Unit, LineNo,
CreateFunctionType(Args.size(), Unit), false /* internal linkage */, 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 and we now have an DISubprogram that contains a reference to all of our
metadata for the function. metadata for the function.