- 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=)
Details
Details
- Reviewers
xur - Commits
- rG96c973d70583: [nfc] small maintainability IndirectCallPromotion changes
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
How about we get rid of the module field? The function passed in all associating with the module so we can get the module from there. And there seems only one use of M (when calling annotateValueSite).
Other changes look good to me.