Skip to content

Commit 43badc0

Browse files
committed
[NewPM/CodeGen] Move MachineModuleInfo::invalidate() to MachineModuleAnalysis::Result
Missed in llvm#80937 since it's not currently being used.
1 parent ff8c865 commit 43badc0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/include/llvm/CodeGen/MachineModuleInfo.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,6 @@ class MachineModuleInfo {
192192
unsigned getCurrentCallSite() { return CurCallSite; }
193193

194194
/// \}
195-
196-
// MMI owes MCContext. It should never be invalidated.
197-
bool invalidate(Module &, const PreservedAnalyses &,
198-
ModuleAnalysisManager::Invalidator &) {
199-
return false;
200-
}
201195
}; // End class MachineModuleInfo
202196

203197
class MachineModuleInfoWrapperPass : public ImmutablePass {
@@ -237,6 +231,12 @@ class MachineModuleAnalysis : public AnalysisInfoMixin<MachineModuleAnalysis> {
237231

238232
public:
239233
MachineModuleInfo &getMMI() { return MMI; }
234+
235+
// MMI owes MCContext. It should never be invalidated.
236+
bool invalidate(Module &, const PreservedAnalyses &,
237+
ModuleAnalysisManager::Invalidator &) {
238+
return false;
239+
}
240240
};
241241

242242
MachineModuleAnalysis(MachineModuleInfo &MMI) : MMI(MMI) {}

0 commit comments

Comments
 (0)