Move emitDIE and emitAbbrevs to AsmPrinter. NFC.
authorFrederic Riss <friss@apple.com>
Wed, 4 Mar 2015 02:30:17 +0000 (02:30 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 4 Mar 2015 02:30:17 +0000 (02:30 +0000)
commit79664f9749572cf8a5911bbb5c551ff1d4b0b996
tree7d86723cce9ee9ccd6ee5af8c6cde526aed9e30c
parent1deab9b1bb9fa1e1a3644c9bf9e6bd47767223e8
Move emitDIE and emitAbbrevs to AsmPrinter. NFC.

(They are called emitDwarfDIE and emitDwarfAbbrevs in their new home)

llvm-dsymutil wants to reuse that code, but it doesn't have a DwarfUnit or
a DwarfDebug object to call those. It has access to an AsmPrinter though.

Having emitDIE in the AsmPrinter also removes the DwarfFile dependency
on DwarfDebug, and thus the patch drops that field.

Differential Revision: http://reviews.llvm.org/D8024

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231210 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfFile.cpp
lib/CodeGen/AsmPrinter/DwarfFile.h