[PATCH] Fix bug 19437 - Only add discriminators for DWARF 4 and above.

Diego Novillo dnovillo at google.com
Thu Apr 17 13:56:15 PDT 2014


On Thu, Apr 17, 2014 at 4:12 PM, David Blaikie <dblaikie at gmail.com> wrote:

> Adrian - this disabled discriminators for DWARF < 4, but doesn't
> disable them for OSX specifically. If OSX is using the default of
> "current DWARF", it'll need a special case here, right? ("DWARF < 4 ||
> darwin")
>

AFAICT, darwin is using dwarf-2.  When I generated the .ll file for the
test case, I used a darwin target:

$ clang -target x86_64-apple-darwin -g d.c -emit-llvm -S
$ grep 'Dwarf Version' d.ll
!10 = metadata !{i32 2, metadata !"Dwarf Version", i32 2}


Diego.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140417/4a24761c/attachment.html>


More information about the llvm-commits mailing list