diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-05-25 18:50:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-05-25 18:50:28 +0000 |
commit | b3cee2fb42e9117d6ec2e291e9e99cb4eb99c18d (patch) | |
tree | 5e0af2e2c334031a4ffc7dfb9ec19dbc9f959193 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 236e78101127a35971405201c7ab0563ce8601af (diff) | |
download | bcm5719-llvm-b3cee2fb42e9117d6ec2e291e9e99cb4eb99c18d.tar.gz bcm5719-llvm-b3cee2fb42e9117d6ec2e291e9e99cb4eb99c18d.zip |
DebugInfo: Produce debug_{gnu_}pub{names,types} entries when explicitly requested, even in -gmlt or when empty
Turns out gold doesn't use the DW_AT_GNU_pubnames to decide whether to
parse the rest of the DIEs when building gdb-index. This causes gold to
trip over LLVM's output when there are DW_FORM_ref_addr present.
Gold does use the presence of a debug_gnu_pub{names,types} entry for the
CU to skip parsing the debug_info portion, so make sure that's included
even when empty (technically, when empty there couldn't be any ref_addr
anyway - it only came up when gmlt didn't produce any (even non-empty)
pubnames - but given what that reveals about gold's implementation, this
seems like a good thing to do for consistency).
llvm-svn: 303894
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 77e9e671529..b8f57472f17 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -77,8 +77,6 @@ class DwarfCompileUnit final : public DwarfUnit { bool isDwoUnit() const override; - bool includeMinimalInlineScopes() const; - DenseMap<const MDNode *, DIE *> &getAbstractSPDies() { if (isDwoUnit() && !DD->shareAcrossDWOCUs()) return AbstractSPDies; @@ -101,6 +99,8 @@ public: return Skeleton; } + bool includeMinimalInlineScopes() const; + void initStmtList(); /// Apply the DW_AT_stmt_list from this compile unit to the specified DIE. |