Index: clang/lib/Analysis/ProgramPoint.cpp =================================================================== --- clang/lib/Analysis/ProgramPoint.cpp +++ clang/lib/Analysis/ProgramPoint.cpp @@ -99,12 +99,6 @@ case ProgramPoint::CallExitEndKind: Out << "CallExitEnd\""; break; - case ProgramPoint::PostStmtPurgeDeadSymbolsKind: - Out << "PostStmtPurgeDeadSymbols\""; - break; - case ProgramPoint::PreStmtPurgeDeadSymbolsKind: - Out << "PreStmtPurgeDeadSymbols\""; - break; case ProgramPoint::EpsilonKind: Out << "EpsilonPoint\""; break; @@ -210,20 +204,35 @@ Out << ", "; printLocJson(Out, S->getBeginLoc(), SM); - Out << ", \"stmt_point_kind\": "; - if (getAs()) - Out << "\"PreStmt\""; + Out << ", \"stmt_point_kind\": \""; + if (getAs()) + Out << "PreLoad"; + else if (getAs()) + Out << "PreStore"; + else if (getAs()) + Out << "PostAllocatorCall"; + else if (getAs()) + Out << "PostCondition"; else if (getAs()) - Out << "\"PostLoad\""; - else if (getAs()) - Out << "\"PostStore\""; + Out << "PostLoad"; else if (getAs()) - Out << "\"PostLValue\""; - else if (getAs()) - Out << "\"PostAllocatorCall\""; - else - Out << "null"; + Out << "PostLValue"; + else if (getAs()) + Out << "PostStore"; + else if (getAs()) + Out << "PostStmt"; + else if (getAs()) + Out << "PostStmtPurgeDeadSymbols"; + else if (getAs()) + Out << "PreStmtPurgeDeadSymbols"; + else if (getAs()) + Out << "PreStmt"; + else { + Out << "\nKind: '" << getKind(); + llvm_unreachable("' is unhandled StmtPoint kind!"); + } + Out << '\"'; break; } }