[PATCH] D98994: NFC. Refactored DIPrinter for better support of new print styles.

Alex Orlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 19 17:24:54 PDT 2021


aorlov created this revision.
aorlov added reviewers: MaskRay, dblaikie, grimar, jhenderson, jdoerfert.
aorlov added a project: LLVM.
Herald added subscribers: rupprecht, hiraditya.
aorlov requested review of this revision.
Herald added a subscriber: llvm-commits.

This patch introduces a DIPrinter interface to implement by different output style printer implementations. DIPrinterGNU and DIPrinterLLVM implement the GNU and LLVM output style printing respectively. No functional changes.

This refactoring clarifies and simplifies the code, and makes a new output style addition easier.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98994

Files:
  llvm/include/llvm/DebugInfo/Symbolize/DIPrinter.h
  llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp
  llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98994.332035.patch
Type: text/x-patch
Size: 18122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210320/cd52d383/attachment.bin>


More information about the llvm-commits mailing list