diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-12-09 16:22:26 -0800 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-12-10 10:27:16 -0800 |
commit | 7034794b314d9de808de004d22b47f18d134757d (patch) | |
tree | 9aadd983ec189fe227b341f47f31e2a783bb35f7 /lldb/source/Commands/CommandObjectGUI.cpp | |
parent | 49da20ddb4319f3f469499e341a1bc3101adcdcf (diff) | |
download | bcm5719-llvm-7034794b314d9de808de004d22b47f18d134757d.tar.gz bcm5719-llvm-7034794b314d9de808de004d22b47f18d134757d.zip |
Replace redundant code in FormatManager and FormatCache with templates (NFC)
This is a preparatory patch for an upcoming bugfix.
FormatManager and friends have four identical implementations of many
accessor functions to deal with the four types of shared pointers in
the FormatCache. This patch replaces these implementations with
templates. While this patch drastically reduces the amount of source
code and its maintainablity, it doesn't actually improve code
size. I'd argue, this is still an improvement.
rdar://problem/57756763
Differential Revision: https://reviews.llvm.org/D71231
Diffstat (limited to 'lldb/source/Commands/CommandObjectGUI.cpp')
0 files changed, 0 insertions, 0 deletions