================ @@ -152,7 +152,13 @@ void clang::ParseAST(Sema &S, bool PrintStats, bool SkipFunctionBodies) { bool HaveLexer = S.getPreprocessor().getCurrentLexer(); if (HaveLexer) { - llvm::TimeTraceScope TimeScope("Frontend"); + llvm::TimeTraceScope TimeScope("Frontend", [&]() { + llvm::TimeTraceMetadata M; + const SourceManager &SM = S.getSourceManager(); + if (const auto *FE = SM.getFileEntryForID(SM.getMainFileID())) + M.File = FE->tryGetRealPathName(); ---------------- usx95 wrote:
Done. https://github.com/llvm/llvm-project/pull/99866 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits