[all-commits] [llvm/llvm-project] be5d92: [Debug-Info][NFC] move emitDwarfUnitLength to MCSt...

Chen Zheng via All-commits all-commits at lists.llvm.org
Tue Feb 23 18:29:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be5d92e37e4fe0b7ba2f5658fa828c1c39988374
      https://github.com/llvm/llvm-project/commit/be5d92e37e4fe0b7ba2f5658fa828c1c39988374
  Author: Chen Zheng <czhengsz at cn.ibm.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/AsmPrinter.h
    M llvm/include/llvm/MC/MCStreamer.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
    M llvm/lib/MC/MCStreamer.cpp
    M llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp

  Log Message:
  -----------
  [Debug-Info][NFC] move emitDwarfUnitLength to MCStreamer class

We may need to do some customization for DWARF unit length in DWARF
section headers for some targets for some code generation path.

For example, for XCOFF in assembly path, AIX assembler does not require
the debug section containing its debug unit length in the header.

Move emitDwarfUnitLength to MCStreamer class so that we can do
customization in different Streamers

Reviewed By: ikudrin

Differential Revision: https://reviews.llvm.org/D95932




More information about the All-commits mailing list