[PATCH] D27032: Rely on a single DWARF version instead of having two copies

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 19:39:38 PST 2016


clayborg created this revision.
clayborg added reviewers: dblaikie, probinson, aprantl, llvm-commits.

This patch makes AsmPrinter less reliant on DwarfDebug by relying on the DWARF version in the AsmPrinter's MCStreamer's MCContext. This allows us to remove the redundant DWARF version from DwarfDebug. It also lets us change code that used to access the AsmPrinter's DwarfDebug just to get to the DWARF version by changing the DWARF version accessor on AsmPrinter so that it grabs the version from its MCStreamer's MCContext.


https://reviews.llvm.org/D27032

Files:
  include/llvm/CodeGen/AsmPrinter.h
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
  lib/CodeGen/AsmPrinter/DIE.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27032.79017.patch
Type: text/x-patch
Size: 6361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161123/dcfcf37f/attachment.bin>


More information about the llvm-commits mailing list