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 | 6cfa9e1a6dfd2b4b3c1c7349267a193e762959cb (patch) | |
tree | 6fe242d02aaed773d5998fc2ff480e39fe08cd79 /llvm/lib/CodeGen | |
parent | 21a5e5c1c77dd33d521339c940d7398d37dfe035 (diff) | |
download | bcm5719-llvm-6cfa9e1a6dfd2b4b3c1c7349267a193e762959cb.tar.gz bcm5719-llvm-6cfa9e1a6dfd2b4b3c1c7349267a193e762959cb.zip |
DebugInfo: Add comments/assert description to r209674 based on Eric Christopher's post-commit review feedback.
llvm-svn: 210228
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 0bac3bec389..af9344a4245 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/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(); } |