[llvm][NFC] Factor some common data in InlineAdvice
authorMircea Trofin <mtrofin@google.com>
Tue, 9 Jun 2020 21:33:46 +0000 (14:33 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 11 Jun 2020 15:01:00 +0000 (08:01 -0700)
commite82eff7a03b0785c5a295d048516fd7a6634fee5
treeae5855c320c38d3f8481305b66a9974862d0a81b
parent7706c7af74419675a6d62548ddb9c34ea995d34f
[llvm][NFC] Factor some common data in InlineAdvice

Summary:
Other derivations will all want to emit optimization remarks and, as
part of that, use debug info.

Additionally, drive-by const-ing.

Reviewers: davidxl, dblaikie

Subscribers: aprantl, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81507
llvm/include/llvm/Analysis/InlineAdvisor.h
llvm/lib/Analysis/InlineAdvisor.cpp