Skip to content

Commit 9bdf926

Browse files
committed
fixup! fixup! [Analysis] Add DebugInfoCache analysis
1 parent d7736a0 commit 9bdf926

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

llvm/include/llvm/Analysis/DebugInfoCache.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class DebugInfoCache {
3030
SmallDenseMap<const DICompileUnit *, DebugInfoFinder> Result;
3131

3232
DebugInfoCache(const Module &M);
33-
34-
bool invalidate(Module &, const PreservedAnalyses &,
35-
ModuleAnalysisManager::Invalidator &);
3633
};
3734

3835
class DebugInfoCacheAnalysis

llvm/lib/Analysis/DebugInfoCache.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ DebugInfoCache::DebugInfoCache(const Module &M) {
3232
}
3333
}
3434

35-
bool DebugInfoCache::invalidate(Module &M, const PreservedAnalyses &PA,
36-
ModuleAnalysisManager::Invalidator &) {
37-
// Check whether the analysis has been explicitly invalidated. Otherwise, it's
38-
// stateless and remains preserved.
39-
auto PAC = PA.getChecker<DebugInfoCacheAnalysis>();
40-
return !PAC.preservedWhenStateless();
41-
}
42-
4335
AnalysisKey DebugInfoCacheAnalysis::Key;
4436

4537
DebugInfoCache DebugInfoCacheAnalysis::run(Module &M, ModuleAnalysisManager &) {

0 commit comments

Comments
 (0)