summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-02-23 22:08:38 +0000
committerVedant Kumar <vsk@apple.com>2018-02-23 22:08:38 +0000
commitebc6bc8188c06cb89f01d338004bb4ef55a692f9 (patch)
tree63e7a5f1d849bfb10635a03b27c5935b175feff7 /llvm/lib/Analysis/InstructionSimplify.cpp
parentffac3ed3417eef1a860de0e4a3155992606648bb (diff)
downloadbcm5719-llvm-ebc6bc8188c06cb89f01d338004bb4ef55a692f9.tar.gz
bcm5719-llvm-ebc6bc8188c06cb89f01d338004bb4ef55a692f9.zip
[Utility] Simplify and generalize the CleanUp helper, NFC
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. Differential Revision: https://reviews.llvm.org/D43662 llvm-svn: 325964
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud