aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-12-29 16:03:37 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2021-01-12 12:36:17 +0300
commit9ec72cfc61ad5d87bb9e719b8b01f56e4da88a5b (patch)
tree7429928a7f1f88e324a79f8d14ab0889977a72c2 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentc93b95593907c28cbcfde3d8266801587e110b42 (diff)
downloadllvm-9ec72cfc61ad5d87bb9e719b8b01f56e4da88a5b.zip
llvm-9ec72cfc61ad5d87bb9e719b8b01f56e4da88a5b.tar.gz
llvm-9ec72cfc61ad5d87bb9e719b8b01f56e4da88a5b.tar.bz2
[llvm-readef/obj] - Change the design structure of ELF dumper. NFCI.
This is a refactoring for design of stuff in `ELFDumper.cpp`. The current design of ELF dumper is far from ideal. Currently most overridden functions (inherited from `ObjDumper`) in `ELFDumper` just forward to the functions of `ELFDumperStyle` (which can be either `GNUStyle` or `LLVMStyle`). A concrete implementation may be in any of `ELFDumper`/`DumperStyle`/`GNUStyle`/`LLVMStyle`. This patch reorganizes the classes by introducing `GNUStyleELFDumper`/`LLVMStyleELFDumper` which inherit from `ELFDumper`. The implementations are moved: `DumperStyle` -> `ELFDumper` `GNUStyle` -> `GNUStyleELFDumper` `LLVMStyle` -> `LLVMStyleELFDumper` With that we can avoid having a lot of redirection calls and helper methods. The number of code lines changes from 7142 to 6922 (reduced by ~3%) and the code overall looks cleaner. Differential revision: https://reviews.llvm.org/D93900
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions