This is an archive of the discontinued LLVM Phabricator instance.

[AccelTable] Extract EmitterInfo
ClosedPublic

Authored by JDevlieghere on Jul 6 2018, 9:23 AM.

Details

Summary

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 AccelTableEmitterInfo to abstract these from the Dwarf5AccelTableEmitter, so we can have a custom implementation for this in dsymutil.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Jul 6 2018, 9:23 AM
aprantl added inline comments.Jul 6 2018, 9:36 AM
llvm/include/llvm/CodeGen/AccelTable.h
290 ↗(On Diff #154423)

Doxygen comment?

llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
238 ↗(On Diff #154423)

Doxygen comment for the class?

453 ↗(On Diff #154423)

The LLVM coding guidelines discourage commented out code. Is this necessary here?

  • Add doxygen comments
  • Remove commented out code
JDevlieghere marked 3 inline comments as done.Jul 6 2018, 11:37 AM
JDevlieghere added inline comments.
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
453 ↗(On Diff #154423)

Yup, this shouldn't have made it into the code review.

aprantl accepted this revision.Jul 6 2018, 1:22 PM
aprantl added inline comments.
llvm/include/llvm/CodeGen/AccelTable.h
292 ↗(On Diff #154443)

What would you think about Writer instead of Emitter?

This revision is now accepted and ready to land.Jul 6 2018, 1:22 PM
This revision was automatically updated to reflect the committed changes.
JDevlieghere marked an inline comment as done.