<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 4:12 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank" class="cremed">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Adrian - this disabled discriminators for DWARF < 4, but doesn't<br>

disable them for OSX specifically. If OSX is using the default of<br>
"current DWARF", it'll need a special case here, right? ("DWARF < 4 ||<br>
darwin")<br></blockquote><div><br></div><div>AFAICT, darwin is using dwarf-2.  When I generated the .ll file for the test case, I used a darwin target:</div><div><br></div><div><div>$ clang -target x86_64-apple-darwin -g d.c -emit-llvm -S</div>
</div><div>$ grep 'Dwarf Version' d.ll</div><div>!10 = metadata !{i32 2, metadata !"Dwarf Version", i32 2}</div><div> </div><div><br></div><div>Diego.</div></div></div></div>