Skip to content

Commit 5efc020

Browse files
committed
Removing the obsolete static functions from LifetimeSafetyAnalysis
1 parent 41d835c commit 5efc020

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

clang/include/clang/Analysis/Analyses/LifetimeSafety/Origins.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class OriginManager {
7979

8080
void dump(OriginID OID, llvm::raw_ostream &OS) const;
8181

82-
const llvm::StringMap<int> getMissingOrigins() const;
82+
const llvm::StringMap<unsigned> getMissingOrigins() const;
8383

8484
private:
8585
OriginID getNextOriginID() { return NextOriginID++; }

clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ void LifetimeSafetyAnalysis::run() {
6868
LiveOrigins->dump(llvm::dbgs(), FactMgr.getTestPoints()));
6969

7070
runLifetimeChecker(*LoanPropagation, *LiveOrigins, FactMgr, AC, Reporter);
71-
UpdateMissingOriginCount(FactMgr.getOriginMgr());
7271
}
7372
} // namespace internal
7473

clang/lib/Analysis/LifetimeSafety/Origins.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,4 @@ OriginID OriginManager::getOrCreate(const ValueDecl &D) {
105105
return NewID;
106106
}
107107

108-
bool OriginManager::isOriginMissing(const Expr &E) const {
109-
auto It = ExprToOriginID.find(&E);
110-
return It == ExprToOriginID.end();
111-
}
112-
113108
} // namespace clang::lifetimes::internal

0 commit comments

Comments
 (0)