From 3e3eb33ed7fbf1140cb05c6d47d5ae60f61a1ec5 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 15 Dec 2016 23:17:52 +0000 Subject: DebugInfo: Emit ranges for functions with DISubprograms but lacking locations on any instructions This seems more consistent, and helps tidy up/simplify some other code in this change. llvm-svn: 289889 --- llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 9412e50884e..da20bef5221 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -172,7 +172,7 @@ public: unsigned *ChildScopeCount = nullptr); /// \brief Construct a DIE for this subprogram scope. - void constructSubprogramScopeDIE(LexicalScope *Scope); + void constructSubprogramScopeDIE(const DISubprogram *Sub, LexicalScope *Scope); DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE); -- cgit v1.2.3