Skip to content

Commit

Permalink
[NewPM/CodeGen] Move MachineModuleInfo::invalidate() to MachineModule…
Browse files Browse the repository at this point in the history
…Analysis::Result

Missed in #80937 since it's not currently being used.
  • Loading branch information
aeubanks committed Feb 8, 2024
1 parent ff8c865 commit 43badc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions llvm/include/llvm/CodeGen/MachineModuleInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@ class MachineModuleInfo {
unsigned getCurrentCallSite() { return CurCallSite; }

/// \}

// MMI owes MCContext. It should never be invalidated.
bool invalidate(Module &, const PreservedAnalyses &,
ModuleAnalysisManager::Invalidator &) {
return false;
}
}; // End class MachineModuleInfo

class MachineModuleInfoWrapperPass : public ImmutablePass {
Expand Down Expand Up @@ -237,6 +231,12 @@ class MachineModuleAnalysis : public AnalysisInfoMixin<MachineModuleAnalysis> {

public:
MachineModuleInfo &getMMI() { return MMI; }

// MMI owes MCContext. It should never be invalidated.
bool invalidate(Module &, const PreservedAnalyses &,
ModuleAnalysisManager::Invalidator &) {
return false;
}
};

MachineModuleAnalysis(MachineModuleInfo &MMI) : MMI(MMI) {}
Expand Down

0 comments on commit 43badc0

Please sign in to comment.