mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
DebugInfo: Add comments/assert description to r209674 based on Eric Christopher's post-commit review feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a8272d73c
commit
d4af856cfb
@ -1389,7 +1389,7 @@ DIE *DwarfUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
|
||||
// DW_TAG_inlined_subroutine may refer to this DIE.
|
||||
DIE &SPDie = createAndAddDIE(dwarf::DW_TAG_subprogram, *ContextDIE, SP);
|
||||
|
||||
// Abort here and fill this in later, depending on whether or not this
|
||||
// Stop here and fill this in later, depending on whether or not this
|
||||
// subprogram turns out to have inlined instances or not.
|
||||
if (SP.isDefinition())
|
||||
return &SPDie;
|
||||
@ -1403,7 +1403,9 @@ void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie) {
|
||||
StringRef DeclLinkageName;
|
||||
if (DISubprogram SPDecl = SP.getFunctionDeclaration()) {
|
||||
DeclDie = getDIE(SPDecl);
|
||||
assert(DeclDie);
|
||||
assert(DeclDie && "This DIE should've already been constructed when the "
|
||||
"definition DIE was creaeted in "
|
||||
"getOrCreateSubprogramDIE");
|
||||
DeclLinkageName = SPDecl.getLinkageName();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user