[clang] [clang] Output location info in separate fields for -ftime-trace (PR #106277)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 29 05:00:33 PDT 2024
================
@@ -1255,8 +1256,12 @@ Parser::DeclGroupPtrTy Parser::ParseDeclarationOrFunctionDefinition(
// Add an enclosing time trace scope for a bunch of small scopes with
// "EvaluateAsConstExpr".
llvm::TimeTraceScope TimeScope("ParseDeclarationOrFunctionDefinition", [&]() {
- return Tok.getLocation().printToString(
- Actions.getASTContext().getSourceManager());
+ llvm::TimeTraceMetadata M;
----------------
usx95 wrote:
Added column information as well. The source range (begin and end column) might also be interesting for EvaluateExpr* thing but I am omitting them as of now.
https://github.com/llvm/llvm-project/pull/106277
More information about the cfe-commits
mailing list