[NFC][PartialInliner]: Clean up code
authorEttore Tiotto <etiotto@ca.ibm.com>
Thu, 22 Oct 2020 17:59:32 +0000 (13:59 -0400)
committerEttore Tiotto <etiotto@ca.ibm.com>
Thu, 22 Oct 2020 18:40:15 +0000 (14:40 -0400)
commite6521ce0642583881a899e0cc52dcb4a5011fc48
tree8233fd9e4c99150c70e5857bd4adb724c63182c5
parent6f798e460ca3ddecb207b563d157d5ae3163cd55
[NFC][PartialInliner]: Clean up code

Make member function const where possible, use LLVM_DEBUG to print debug traces
rather than a custom option, pass by reference to avoid null checking, ...

Reviewed By: fhann

Differential Revision: https://reviews.llvm.org/D89895
llvm/lib/Transforms/IPO/PartialInlining.cpp