Skip to content

Commit

Permalink
[llvm][NFC] Remove unused fields in InlineAdvisor
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrofin committed May 13, 2020
1 parent 25f6464 commit c86f966
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/include/llvm/Analysis/InlineAdvisor.h
Expand Up @@ -174,7 +174,7 @@ class InlineAdvisorAnalysis : public AnalysisInfoMixin<InlineAdvisorAnalysis> {
static AnalysisKey Key;
InlineAdvisorAnalysis() = default;
struct Result {
Result(Module &M, ModuleAnalysisManager &MAM) : M(M), MAM(MAM) {}
Result(Module &M, ModuleAnalysisManager &MAM) {}
bool invalidate(Module &, const PreservedAnalyses &,
ModuleAnalysisManager::Invalidator &) {
// InlineAdvisor must be preserved across analysis invalidations.
Expand All @@ -185,8 +185,6 @@ class InlineAdvisorAnalysis : public AnalysisInfoMixin<InlineAdvisorAnalysis> {
void clear() { Advisor.reset(); }

private:
Module &M;
ModuleAnalysisManager &MAM;
std::unique_ptr<InlineAdvisor> Advisor;
};

Expand Down

0 comments on commit c86f966

Please sign in to comment.