File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
203197class 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) {}
You can’t perform that action at this time.
0 commit comments