[PATCH] Anonymous namespaces are missing import DW_TAG_imported_module.

David Blaikie dblaikie at gmail.com
Tue Mar 3 09:44:12 PST 2015


On Fri, Feb 27, 2015 at 5:28 PM, Paul Robinson <
Paul_Robinson at playstation.sony.com> wrote:

> It's an arguable gray area in the compiler/debugger contract.  How much
> does the compiler _require_ the debugger to know?  (Which is different
> from how much the debugger knows for the purpose of improving the user's
> debugging experience.)
>

I don't quite see the grey here - I thought the line of reasoning you've
provided in the past was fairly simple: source fidelity. The source doesn't
have a using directive in it, so I don't know why we'd expect to see one in
the debug info.


> This change reduces that requirement, with very low size cost (which we
> are pretty sensitive to).  A debugger that auto-imports anonymous
> namespaces will see the import and recognize that it has already imported
>  that scope, so the cost there is also very low.
>
> Not seeing a whole lot of down-side here.
>

Mostly just principles & a desire not to add cruft in source or output.

Not sure if other people have any opinion on this, I'm happy to defer.


>
>
> http://reviews.llvm.org/D7895
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150303/9ec08739/attachment.html>


More information about the llvm-commits mailing list