File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
clang/lib/Analysis/LifetimeSafety Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 3333namespace clang ::lifetimes {
3434namespace internal {
3535
36- llvm::StringMap<int > LifetimeSafetyAnalysis::MissingOriginCount;
37-
3836LifetimeSafetyAnalysis::LifetimeSafetyAnalysis (AnalysisDeclContext &AC,
3937 LifetimeSafetyReporter *Reporter)
4038 : AC(AC), Reporter(Reporter) {}
4139
42- void LifetimeSafetyAnalysis::PrintStats (llvm::raw_ostream &OS) {
43- llvm::errs () << " \n *** LifetimeSafety Missing Origin Stats "
44- " (expression_type : count) :\n " ;
45- for (const auto &[expr, count] : LifetimeSafetyAnalysis::MissingOriginCount) {
46- OS << expr << " : " << count << ' \n ' ;
47- }
48- }
49-
50- void LifetimeSafetyAnalysis::UpdateMissingOriginCount (const OriginManager &OM) {
51- for (const auto &[expr, missing_origin_count] : OM.getMissingOrigins ()) {
52- LifetimeSafetyAnalysis::MissingOriginCount[std::string (expr)] += missing_origin_count;
53- }
54- }
5540void LifetimeSafetyAnalysis::run () {
5641 llvm::TimeTraceScope TimeProfile (" LifetimeSafetyAnalysis" );
5742
You can’t perform that action at this time.
0 commit comments