[nfc] small maintainability IndirectCallPromotion changes
authorMircea Trofin <mtrofin@google.com>
Thu, 13 Jul 2023 15:59:41 +0000 (08:59 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 20 Jul 2023 21:35:30 +0000 (14:35 -0700)
commit96c973d70583e70e28ebed26b89979e29779c2ca
tree1f6df39a3eaee7ae0c82cb69b37fad0f5990779e
parent52807ba3836ef30c54622f227c4a23e2eb9375cd
[nfc] small maintainability IndirectCallPromotion changes

- we can remove the `Module` field, it's obtainable from `F` and used in
  only one place
- a few fields can be `const`-ed, thus enforcing compile-time
  initialization checking (and we don't need to support `operator=`)

Differential Revision: https://reviews.llvm.org/D155212
llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp