[PATCH] D110740: Do not emit prologue_end for line 0 locs

Shubham Sandeep Rastogi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 18:42:24 PDT 2021


rastogishubham updated this revision to Diff 376085.
rastogishubham added a comment.
Herald added a subscriber: ormris.

As suggested by Adrian and Paul, I have reduced the original testcase to be smaller by using a small C sample and compiling only with -gline-tables-only. I have also added another test case where if the only .loc is a line 0 loc, we want to have a prologue_end there, and only move the prologue_end to a non-zero .loc if it exists.

I have also edited my change to llvm/test/DebugInfo/MIR/X86/debug-loc-0.mir to be consistent with what it is testing


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110740/new/

https://reviews.llvm.org/D110740

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/test/CodeGen/X86/line-zero-prologue-end.ll
  llvm/test/CodeGen/X86/no-non-zero-debug-loc-prologue.ll
  llvm/test/DebugInfo/MIR/X86/debug-loc-0.mir
  llvm/test/DebugInfo/X86/dbg-prolog-end.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110740.376085.patch
Type: text/x-patch
Size: 5228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/8e37516c/attachment.bin>


More information about the llvm-commits mailing list