HomePhabricator

* NFC. Refactored DIPrinter for better support of new print styles.

Authored by aorlov on Apr 5 2021, 4:40 AM.

Description

  • NFC. Refactored DIPrinter for better support of new print styles.

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.

Reviewed By: jhenderson, dblaikie

Differential Revision: https://reviews.llvm.org/D98994

Details

Committed
aorlovApr 5 2021, 4:40 AM
Reviewer
jhenderson
Differential Revision
D98994: NFC. Refactored DIPrinter for better support of new print styles.
Parents
rG0d0514dd9b81: [RISCV] Add a test showing incorrect codegen
Branches
Unknown
Tags
Unknown