[Lldb-commits] [PATCH] D43662: [Utility] Simplify and generalize the CleanUp helper, NFC
Vedant Kumar via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 22 17:29:27 PST 2018
vsk created this revision.
vsk added reviewers: zturner, labath, davide, JDevlieghere.
Removing the template arguments and most of the mutating methods from
CleanUp makes it easier to understand and reuse.
In its present state, CleanUp would be too cumbersome to adapt to cases
where multiple objects need to be released. Take for example this change
in swift-lldb:
https://github.com/apple/swift-lldb/pull/334/files#diff-6f474df750f75c8ba675f2a8408a5629R219
This change is simple to express with the new CleanUp, but not so simple
with the old version.
https://reviews.llvm.org/D43662
Files:
include/lldb/Utility/CleanUp.h
source/Host/macosx/Host.mm
source/Host/macosx/Symbols.cpp
source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43662.135574.patch
Type: text/x-patch
Size: 18851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180223/31f84771/attachment-0001.bin>
More information about the lldb-commits
mailing list