[AccelTable] Provide abstraction for emitting DWARF5 accelerator tables.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 9 Jul 2018 09:08:44 +0000 (09:08 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 9 Jul 2018 09:08:44 +0000 (09:08 +0000)
commit5e810a878d15fefb2e52a694467229d43f8d55f6
tree66e65fd7609fcb1f586e811c6e888efe4fe38cff
parente5801b02e49b6fc4dd07702652ea70c9ea0275f3
[AccelTable] Provide abstraction for emitting DWARF5 accelerator tables.

When emitting the DWARF accelerator tables from dsymutil, we don't have
a DwarfDebug instance and we use a custom class to represent Dwarf
compile units. This patch adds an interface AccelTableWriterInfo to
abstract these from the Dwarf5AccelTableWriter, so we can have a custom
implementation for this in dsymutil.

Differential revision: https://reviews.llvm.org/D49031

llvm-svn: 336529
llvm/include/llvm/CodeGen/AccelTable.h
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp