diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-06-05 00:25:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-06-05 00:25:26 +0000 |
commit | d4af856cfb17e00c2c7aef09e569b7bae34cab51 (patch) | |
tree | b867c8acf9aa75c341e353ceff3d72f7494f4498 /lib | |
parent | 7a8272d73c6b107064d97af833e2ccdf761877d8 (diff) | |
download | llvm-d4af856cfb17e00c2c7aef09e569b7bae34cab51.tar.gz llvm-d4af856cfb17e00c2c7aef09e569b7bae34cab51.tar.bz2 llvm-d4af856cfb17e00c2c7aef09e569b7bae34cab51.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 0bac3bec38..af9344a424 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -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(); } |