[clang-cl] make -f(no-)ident a CoreOption
authorNico Weber <thakis@chromium.org>
Mon, 1 Mar 2021 16:49:21 +0000 (11:49 -0500)
committerNico Weber <thakis@chromium.org>
Mon, 1 Mar 2021 16:53:51 +0000 (11:53 -0500)
commit83feaa36ad53ce93ed808169d3316ed757703e47
tree046c82290a7c615e873b8a50c00dc01ca8b260c2
parenta6c81d33667cadb713e28215f6c1f84cdaaaff64
[clang-cl] make -f(no-)ident a CoreOption

On clang emits the compiler version string into debug information
by default for both dwarf and codeview. That makes compiler output
needlessly compiler-version-dependent which makes e.g. comparing
object file outputs during a bisect hard. So it's nice if there's
an easy way to turn this off.

(On ELF, this flag also controls the .comment section, but that
part is ELF-only. The debug-info bit isn't.)

Differential Revision: https://reviews.llvm.org/D97695
clang/include/clang/Driver/Options.td
clang/test/Driver/cl-options.c