[all-commits] [llvm/llvm-project] 71a35f: [gcov] Simplify cc1 options and remove CodeGenOpti...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed May 17 16:09:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 71a35f7e3d6c78f8035f2eb7d58beba3b7208f9d
https://github.com/llvm/llvm-project/commit/71a35f7e3d6c78f8035f2eb7d58beba3b7208f9d
Author: Fangrui Song <i at maskray.me>
Date: 2023-05-17 (Wed, 17 May 2023)
Changed paths:
M clang/include/clang/Basic/CodeGenOptions.def
M clang/include/clang/Driver/Options.td
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/CodeGen/CGDebugInfo.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/test/CodeGen/attr-function-return.c
M clang/test/CodeGen/code-coverage-tsan.c
M clang/test/CodeGen/code-coverage.c
M clang/test/CodeGen/no_profile.c
M clang/test/Driver/coverage.c
M clang/test/Driver/cuda-no-pgo-or-coverage.cu
Log Message:
-----------
[gcov] Simplify cc1 options and remove CodeGenOptions EmitCovNotes/EmitCovArcs
After a07b135ce0c0111bd83450b5dc29ef0381cdbc39, we always pass
-coverage-notes-file/-coverage-data-file for driver options
-ftest-coverage/-fprofile-arcs/--coverage. As a bonus, we can make the following
simplification to cc1 options:
* `-ftest-coverage -coverage-notes-file a.gcno` => `-coverage-notes-file a.gcno`
* `-fprofile-arcs -coverage-data-file a.gcda` => `-coverage-data-file a.gcda`
and remove EmitCovNotes/EmitCovArcs.
More information about the All-commits
mailing list