<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Well, they're a complete waste of space in the DWARF, according to my debugger guys.  Although the benefit to removing them is small, it's not zero.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">It sounds like removing them from the metadata would also be a good thing, again small but nonzero.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">--paulr<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></a></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> llvm-commits [mailto:llvm-commits-bounces@lists.llvm.org]
<b>On Behalf Of </b>David Blaikie via llvm-commits<br>
<b>Sent:</b> Wednesday, October 12, 2016 11:14 AM<br>
<b>To:</b> Duncan P. N. Exon Smith; reviews+D14161+public+3e8b35e2be7d6d98@reviews.llvm.org<br>
<b>Cc:</b> llvm-commits@lists.llvm.org<br>
<b>Subject:</b> Re: [PATCH] D14161: Remove the line number from DINamespace and thus decl_line/decl_file from DW_TAG_namespace.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Really belated ping - just noticed namespaces still have decl line/file. Is this still worth doing at some point?<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, Oct 28, 2015 at 4:37 PM Duncan P. N. Exon Smith via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal"><br>
> On 2015-Oct-28, at 15:15, Adrian Prantl <<a href="mailto:aprantl@apple.com" target="_blank">aprantl@apple.com</a>> wrote:<br>
><br>
> aprantl created this revision.<br>
> aprantl added reviewers: dexonsmith, echristo, dblaikie.<br>
> aprantl added a subscriber: llvm-commits.<br>
> aprantl set the repository for this revision to rL LLVM.<br>
><br>
> The file/line on DINamespace only serves one purpose and that is to prevent anonymous namespaces from different CUs from accidentally being uniqued. Since (C++) namespaces can be opened and closed in many different places, it makes no sense to put an arbitrary
 decl_file/decl_line on them and having it there prevents ODR type uniquing [example 1].<br>
><br>
> This patch gets rid of the line number field in DINamespace. The file is still inherited from DIScope. CFE only attaches a DIFile when the namespace is anonymous. A more radical approach would be to drop the DIFile, too, and make anonymous namespaces distinct.
 I'll reserve this as the next incremental step.<br>
><br>
> [1] <a href="https://web.archive.org/web/20140725222822/http:/lists.cs.uiuc.edu/pipermail/llvmdev/2014-June/073801.html" target="_blank">
https://web.archive.org/web/20140725222822/http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-June/073801.html</a><br>
><br>
> Repository:<br>
>  rL LLVM<br>
><br>
> <a href="http://reviews.llvm.org/D14161" target="_blank">http://reviews.llvm.org/D14161</a><br>
><br>
> Files:<br>
>  include/llvm/IR/DIBuilder.h<br>
>  include/llvm/IR/DebugInfoMetadata.h<br>
>  lib/AsmParser/LLParser.cpp<br>
>  lib/Bitcode/Reader/BitcodeReader.cpp<br>
>  lib/Bitcode/Writer/BitcodeWriter.cpp<br>
>  lib/CodeGen/AsmPrinter/DwarfUnit.cpp<br>
>  lib/CodeGen/AsmPrinter/DwarfUnit.h<br>
>  lib/CodeGen/CGDebugInfo.cpp<br>
>  lib/IR/AsmWriter.cpp<br>
>  lib/IR/DIBuilder.cpp<br>
>  lib/IR/DebugInfoMetadata.cpp<br>
>  lib/IR/LLVMContextImpl.h<br>
>  test/Assembler/dinamespace.ll<br>
>  test/CodeGenCXX/debug-info-namespace.cpp<br>
>  test/DebugInfo/Generic/namespace.ll<br>
>  test/DebugInfo/X86/dwarf-public-names.ll<br>
>  test/Modules/ExtDebugInfo.cpp<br>
>  unittests/IR/MetadataTest.cpp<br>
><br>
> <D14161.38690.patch><br>
<br>
I notice you missed updating LangRef.<br>
<br>
I haven't had a chance to look in detail at the rest of the IR changes.  I'll<br>
try to look in the next few days.<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>