diff options
| author | Tomer Shafir <tomer.shafir8@gmail.com> | 2025-11-09 14:11:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-09 14:11:53 +0200 |
| commit | 96a52893ca401f0ac46a67549f608d526b3f3dc8 (patch) | |
| tree | b8e561fd05aba3831a3b10cac7c2a49b262b972f /clang-tools-extra/clang-tidy/google/TodoCommentCheck.cpp | |
| parent | 93d445cba39f4dd3dcda4fa1433eca825cf8fc09 (diff) | |
| download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 | |
This patch adds a Clang-compatible `--save-stats` option, to provide an
easy to use way to save LLVM statistics files when working with llc on
the backend.
Like on Clang, one can specify `--save-stats`, `--save-stats=cwd`, and
`--save-stats=obj` with the same semantics and JSON format.
The implementation uses 2 methods `MaybeEnableStats` and
`MaybeSaveStats` called before and after `compileModule` respectively
that externally own the statistics related logic, while `compileModule`
is now required to return the resolved output filename via an output
param.
Note: like on Clang, the pre-existing `--stats` option is not affected.
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/TodoCommentCheck.cpp')
0 files changed, 0 insertions, 0 deletions
