[PATCH] D95998: [Debug-Info] [NFC] move emit debug line unit length to MCStreamer class

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 3 22:15:04 PST 2021


shchenz created this revision.
shchenz added reviewers: ikudrin, hubert.reinterpretcast, jsji, echristo, PowerPC.
Herald added a subscriber: hiraditya.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is to do the same things with D95932 <https://reviews.llvm.org/D95932>. 
We may want to some customization for DWARF unit length in DWARF section headers for some code generation path.

This patch focuses on debug line section.

Move the "emit debug line unit length" to MCStreamer, so we can do some target specific customization in MCAsmStreamer or MCObjectStreamer without Streamer type check in general code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95998

Files:
  llvm/include/llvm/MC/MCDwarf.h
  llvm/include/llvm/MC/MCStreamer.h
  llvm/lib/MC/MCDwarf.cpp
  llvm/lib/MC/MCStreamer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95998.321312.patch
Type: text/x-patch
Size: 13035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/c5dccea6/attachment.bin>


More information about the llvm-commits mailing list