[PATCH] D37364: [DWARF] Line 0 should not have a discriminator

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 17:46:24 PDT 2017


probinson created this revision.
Herald added a subscriber: JDevlieghere.

We have line 0 inherit the scope of the previous non-zero line, to limit the size cost of the line 0 records; but that scope might have a discriminator attached, and a discriminator on line 0 is pointless.


https://reviews.llvm.org/D37364

Files:
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  test/CodeGen/Generic/dbg-line-0-no-discriminator.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37364.113493.patch
Type: text/x-patch
Size: 5482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170901/2285e653/attachment.bin>


More information about the llvm-commits mailing list