[PATCH] D94668: [debug-info] [NFC] add isa support for MCStreamer

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 03:46:39 PST 2021


shchenz created this revision.
shchenz added reviewers: ikudrin, MaskRay, 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 a simple refactor. In some cases, we need to check if a `MCStreamer` pointer is `MCAsmStreamer` or `MCObjectStreamer`, so we can implement some different behaviour in assembly mode and object mode.

For example, we are going to support dwarf for XCOFF. XCOFF assembler will fill the .debug_line or .debug_info length into the final object file, so in assembly mode, compiler should not emit .debug_line or .debug_info length into the section header, but in object mode, we still need that length to make other tools happy.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94668

Files:
  llvm/include/llvm/MC/MCAsmStreamer.h
  llvm/include/llvm/MC/MCObjectStreamer.h
  llvm/include/llvm/MC/MCStreamer.h
  llvm/lib/MC/MCAsmStreamer.cpp
  llvm/lib/MC/MCNullStreamer.cpp
  llvm/lib/Object/RecordStreamer.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94668.316611.patch
Type: text/x-patch
Size: 35400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/9d58ab7f/attachment.bin>


More information about the llvm-commits mailing list