mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 23:33:57 +00:00
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:
parent
dcbcd42f5c
commit
2c641c0a8f
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user